Class GifBitmapProvider
java.lang.Object
com.bumptech.glide.load.resource.gif.GifBitmapProvider
- All Implemented Interfaces:
com.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
public final class GifBitmapProvider
extends Object
implements com.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
Implements
GifDecoder.BitmapProvider by wrapping Glide's
BitmapPool.-
Constructor Summary
ConstructorsConstructorDescriptionGifBitmapProvider(BitmapPool bitmapPool) Constructs an instance without a shared byte array pool.GifBitmapProvider(BitmapPool bitmapPool, ArrayPool arrayPool) Constructs an instance with a shared array pool. -
Method Summary
Modifier and TypeMethodDescriptionobtain(int width, int height, Bitmap.Config config) byte[]obtainByteArray(int size) int[]obtainIntArray(int size) voidrelease(byte[] bytes) voidrelease(int[] array) void
-
Constructor Details
-
GifBitmapProvider
Constructs an instance without a shared byte array pool. Byte arrays will be always constructed when requested. -
GifBitmapProvider
Constructs an instance with a shared array pool. Arrays will be reused where possible.
-
-
Method Details
-
obtain
- Specified by:
obtainin interfacecom.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
-
release
- Specified by:
releasein interfacecom.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
-
obtainByteArray
@NonNull public byte[] obtainByteArray(int size) - Specified by:
obtainByteArrayin interfacecom.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
-
release
public void release(@NonNull byte[] bytes) - Specified by:
releasein interfacecom.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
-
obtainIntArray
@NonNull public int[] obtainIntArray(int size) - Specified by:
obtainIntArrayin interfacecom.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
-
release
public void release(@NonNull int[] array) - Specified by:
releasein interfacecom.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
-