package k5;

import android.graphics.drawable.Drawable;
import androidx.annotation.Nullable;
import com.bumptech.glide.load.engine.e0;

/* JADX INFO: loaded from: classes.dex */
public final class d extends c {
    @Nullable
    public static e0 newInstance(@Nullable Drawable drawable) {
        if (drawable != null) {
            return new d(drawable);
        }
        return null;
    }

    @Override // com.bumptech.glide.load.engine.e0
    public final void a() {
    }

    @Override // com.bumptech.glide.load.engine.e0
    public final Class b() {
        return this.f29071a.getClass();
    }

    @Override // com.bumptech.glide.load.engine.e0
    public final int getSize() {
        Drawable drawable = this.f29071a;
        return Math.max(1, drawable.getIntrinsicHeight() * drawable.getIntrinsicWidth() * 4);
    }
}
