package o; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Path; import android.graphics.drawable.Drawable; /* loaded from: classes.dex */ public abstract class CJh extends AbstractC17681ypS { public CJh(C3144arv c3144arv, DRH drh) { super(c3144arv, drh); } /* JADX INFO: Access modifiers changed from: protected */ public final void GK_(Canvas canvas, Path path, int i, int i2) { int i3 = (i & 16777215) | (i2 << 24); if (AbstractC0810PWv.e() >= 18) { int save = canvas.save(); canvas.clipPath(path); canvas.drawColor(i3); canvas.restoreToCount(save); return; } Paint.Style style = this.e.getStyle(); int color = this.e.getColor(); this.e.setStyle(Paint.Style.FILL); this.e.setColor(i3); canvas.drawPath(path, this.e); this.e.setColor(color); this.e.setStyle(style); } /* JADX INFO: Access modifiers changed from: protected */ public final void GL_(Canvas canvas, Path path, Drawable drawable) { if (AbstractC0810PWv.e() >= 18) { int save = canvas.save(); canvas.clipPath(path); drawable.setBounds((int) this.k.b.left, (int) this.k.b.top, (int) this.k.b.right, (int) this.k.b.bottom); drawable.draw(canvas); canvas.restoreToCount(save); return; } StringBuilder sb = new StringBuilder("Fill-drawables not (yet) supported below API level 18, this code was run on API level "); sb.append(AbstractC0810PWv.e()); sb.append("."); throw new RuntimeException(sb.toString()); } }