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 java.lang.Object implements com.bumptech.glide.gifdecoder.GifDecoder.BitmapProviderImplementsGifDecoder.BitmapProviderby wrapping Glide'sBitmapPool.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.graphics.Bitmapobtain(int width, int height, android.graphics.Bitmap.Config config)byte[]obtainByteArray(int size)int[]obtainIntArray(int size)voidrelease(byte[] bytes)voidrelease(int[] array)voidrelease(android.graphics.Bitmap bitmap)
-
-
-
Constructor Detail
-
GifBitmapProvider
public GifBitmapProvider(BitmapPool bitmapPool)
Constructs an instance without a shared byte array pool. Byte arrays will be always constructed when requested.
-
GifBitmapProvider
public GifBitmapProvider(BitmapPool bitmapPool, @Nullable ArrayPool arrayPool)
Constructs an instance with a shared array pool. Arrays will be reused where possible.
-
-
Method Detail
-
obtain
@NonNull public android.graphics.Bitmap obtain(int width, int height, @NonNull android.graphics.Bitmap.Config config)- Specified by:
obtainin interfacecom.bumptech.glide.gifdecoder.GifDecoder.BitmapProvider
-
release
public void release(@NonNull android.graphics.Bitmap bitmap)- 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
-
-