package o;

import android.graphics.Canvas;
import android.graphics.RectF;
import android.graphics.Region;
import android.graphics.drawable.Drawable;
import android.os.Build;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Po, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0403Po extends C1092eO {
    public static final /* synthetic */ int J = 0;
    public C0377Oo I;

    @Override // o.C1092eO
    public final void e(Canvas canvas) {
        if (this.I.q.isEmpty()) {
            super.e(canvas);
            return;
        }
        canvas.save();
        if (Build.VERSION.SDK_INT >= 26) {
            canvas.clipOutRect(this.I.q);
        } else {
            canvas.clipRect(this.I.q, Region.Op.DIFFERENCE);
        }
        super.e(canvas);
        canvas.restore();
    }

    @Override // o.C1092eO, android.graphics.drawable.Drawable
    public final Drawable mutate() {
        this.I = new C0377Oo(this.I);
        return this;
    }

    public final void n(float f, float f2, float f3, float f4) {
        RectF rectF = this.I.q;
        if (f == rectF.left && f2 == rectF.top && f3 == rectF.right && f4 == rectF.bottom) {
            return;
        }
        rectF.set(f, f2, f3, f4);
        invalidateSelf();
    }
}
