package com.bumptech.glide.load.resource.bitmap; import android.graphics.drawable.BitmapDrawable; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; import com.bumptech.glide.load.resource.drawable.DrawableResource; import com.bumptech.glide.util.Util; /** * A {@link com.bumptech.glide.load.engine.Resource} that wraps an {@link android.graphics.drawable.BitmapDrawable} *
* This class ensures that every call to {@link #get()}} always returns a new * {@link android.graphics.drawable.BitmapDrawable} to avoid rendering issues if used in multiple views and * is also responsible for returning the underlying {@link android.graphics.Bitmap} to the given * {@link com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool} when the resource is recycled. *
*/ public class BitmapDrawableResource extends DrawableResource