package z1; import android.graphics.Bitmap; /* loaded from: classes.dex */ public class f implements s1.v, s1.r { /* renamed from: a, reason: collision with root package name */ private final Bitmap f15731a; /* renamed from: b, reason: collision with root package name */ private final t1.d f15732b; public f(Bitmap bitmap, t1.d dVar) { this.f15731a = (Bitmap) m2.j.e(bitmap, "Bitmap must not be null"); this.f15732b = (t1.d) m2.j.e(dVar, "BitmapPool must not be null"); } public static f e(Bitmap bitmap, t1.d dVar) { if (bitmap == null) { return null; } return new f(bitmap, dVar); } @Override // s1.v public void a() { this.f15732b.c(this.f15731a); } @Override // s1.v public int b() { return m2.k.g(this.f15731a); } @Override // s1.v /* renamed from: c, reason: merged with bridge method [inline-methods] */ public Bitmap get() { return this.f15731a; } @Override // s1.v public Class d() { return Bitmap.class; } @Override // s1.r public void initialize() { this.f15731a.prepareToDraw(); } }