package com.bumptech.glide.load.resource.gif; import android.graphics.Bitmap; import com.bumptech.glide.gifdecoder.GifDecoder; import com.bumptech.glide.load.Options; import com.bumptech.glide.load.ResourceDecoder; import com.bumptech.glide.load.engine.Resource; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; import com.bumptech.glide.load.resource.bitmap.BitmapResource; /* loaded from: classes.dex */ public final class GifFrameResourceDecoder implements ResourceDecoder { private final BitmapPool a; public GifFrameResourceDecoder(BitmapPool bitmapPool) { this.a = bitmapPool; } @Override // com.bumptech.glide.load.ResourceDecoder public boolean a(GifDecoder gifDecoder, Options options) { return true; } @Override // com.bumptech.glide.load.ResourceDecoder public Resource a(GifDecoder gifDecoder, int i, int i2, Options options) { return BitmapResource.a(gifDecoder.a(), this.a); } }