Initial commit
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
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<Bitmap, Bitmap> {
|
||||
|
||||
private static final class NonOwnedBitmapResource implements Resource<Bitmap> {
|
||||
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<Bitmap> 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<Bitmap> a(Bitmap bitmap, int i, int i2, Options options) {
|
||||
return new NonOwnedBitmapResource(bitmap);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user