blob: 32008d3e826f9e10b13ac46680bc2460f4585666 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package com.bumptech.glide.load.resource.gif;
import android.graphics.Bitmap;
import com.bumptech.glide.gifdecoder.GifDecoder;
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
class GifBitmapProvider implements GifDecoder.BitmapProvider {
private final BitmapPool bitmapPool;
public GifBitmapProvider(BitmapPool bitmapPool) {
this.bitmapPool = bitmapPool;
}
@Override
public Bitmap obtain(int width, int height, Bitmap.Config config) {
return bitmapPool.get(width, height, config);
}
}
|