33 lines
920 B
Java
33 lines
920 B
Java
package com.bumptech.glide.load.resource.drawable;
|
|
|
|
import android.graphics.drawable.Drawable;
|
|
import com.bumptech.glide.load.engine.Resource;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class NonOwnedDrawableResource extends DrawableResource<Drawable> {
|
|
private NonOwnedDrawableResource(Drawable drawable) {
|
|
super(drawable);
|
|
}
|
|
|
|
static Resource<Drawable> a(Drawable drawable) {
|
|
if (drawable != null) {
|
|
return new NonOwnedDrawableResource(drawable);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.Resource
|
|
public void a() {
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.Resource
|
|
public Class<Drawable> b() {
|
|
return this.a.getClass();
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.engine.Resource
|
|
public int getSize() {
|
|
return Math.max(1, this.a.getIntrinsicWidth() * this.a.getIntrinsicHeight() * 4);
|
|
}
|
|
}
|