package com.google.android.material.shape;

import android.graphics.Outline;
import android.graphics.RectF;
import android.view.View;
import android.view.ViewOutlineProvider;

/* JADX INFO: loaded from: classes2.dex */
public final class i0 extends ViewOutlineProvider {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f23086a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ h0 f23087b;

    public /* synthetic */ i0(h0 h0Var, int i10) {
        this.f23086a = i10;
        this.f23087b = h0Var;
    }

    @Override // android.view.ViewOutlineProvider
    public final void getOutline(View view, Outline outline) {
        int i10 = this.f23086a;
        h0 h0Var = this.f23087b;
        switch (i10) {
            case 0:
                j0 j0Var = (j0) h0Var;
                if (j0Var.shapeAppearanceModel != null && !j0Var.f23084c.isEmpty()) {
                    RectF rectF = j0Var.f23084c;
                    outline.setRoundRect((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom, j0Var.f23090f);
                    break;
                }
                break;
            default:
                k0 k0Var = (k0) h0Var;
                if (!k0Var.f23085d.isEmpty()) {
                    outline.setPath(k0Var.f23085d);
                }
                break;
        }
    }
}
