package com.bumptech.glide.load.resource.bitmap; import android.graphics.Bitmap; import com.bumptech.glide.load.Options; import com.bumptech.glide.load.ResourceDecoder; import com.bumptech.glide.load.engine.Resource; import com.bumptech.glide.util.Util; /* loaded from: classes.dex */ public final class UnitBitmapDecoder implements ResourceDecoder { private static final class NonOwnedBitmapResource implements Resource { private final Bitmap a; NonOwnedBitmapResource(Bitmap bitmap) { this.a = bitmap; } @Override // com.bumptech.glide.load.engine.Resource public void a() { } @Override // com.bumptech.glide.load.engine.Resource public Class b() { return Bitmap.class; } @Override // com.bumptech.glide.load.engine.Resource public int getSize() { return Util.a(this.a); } /* JADX WARN: Can't rename method to resolve collision */ @Override // com.bumptech.glide.load.engine.Resource public Bitmap get() { return this.a; } } @Override // com.bumptech.glide.load.ResourceDecoder public boolean a(Bitmap bitmap, Options options) { return true; } @Override // com.bumptech.glide.load.ResourceDecoder public Resource a(Bitmap bitmap, int i, int i2, Options options) { return new NonOwnedBitmapResource(bitmap); } }