package o; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; /* loaded from: classes.dex */ public final class JNd implements yBU { private final sqY c; private final yBU d; private final yBU e; public JNd(sqY sqy, yBU ybu, yBU ybu2) { this.c = sqy; this.d = ybu; this.e = ybu2; } @Override // o.yBU public final Ezi e(Ezi ezi, unA una) { Drawable e = ezi.e(); if (e instanceof BitmapDrawable) { yBU ybu = this.d; Bitmap bitmap = ((BitmapDrawable) e).getBitmap(); return ybu.e(bitmap != null ? new EQc(bitmap, this.c) : null, una); } if (e instanceof RiR) { return this.e.e(ezi, una); } return null; } }