public final class GifBitmapProvider extends Object implements com.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
GifDecoder.BitmapProvider by wrapping Glide's
BitmapPool.| Constructor and Description |
|---|
GifBitmapProvider(BitmapPool bitmapPool)
Constructs an instance without a shared byte array pool.
|
GifBitmapProvider(BitmapPool bitmapPool,
ArrayPool arrayPool)
Constructs an instance with a shared array pool.
|
| Modifier and Type | Method and Description |
|---|---|
Bitmap |
obtain(int width,
int height,
Bitmap.Config config) |
byte[] |
obtainByteArray(int size) |
int[] |
obtainIntArray(int size) |
void |
release(Bitmap bitmap) |
void |
release(byte[] bytes) |
void |
release(int[] array) |
public GifBitmapProvider(BitmapPool bitmapPool)
public GifBitmapProvider(BitmapPool bitmapPool, @Nullable ArrayPool arrayPool)
@NonNull public Bitmap obtain(int width, int height, @NonNull Bitmap.Config config)
obtain in interface com.bumptech.glide.gifdecoder.GifDecoder.BitmapProviderpublic void release(@NonNull Bitmap bitmap)
release in interface com.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider@NonNull public byte[] obtainByteArray(int size)
obtainByteArray in interface com.bumptech.glide.gifdecoder.GifDecoder.BitmapProviderpublic void release(@NonNull byte[] bytes)
release in interface com.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider@NonNull public int[] obtainIntArray(int size)
obtainIntArray in interface com.bumptech.glide.gifdecoder.GifDecoder.BitmapProviderpublic void release(@NonNull int[] array)
release in interface com.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider