package o;

import android.graphics.Paint;
import android.graphics.Shader;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class G70 extends AbstractC0601Xe {
    public WT a;
    public long b = 9205357640488583168L;

    @Override // o.AbstractC0601Xe
    public final void a(float f, long j, Ew0 ew0) {
        Paint paint = (Paint) ew0.b;
        WT wt = this.a;
        if (wt == null || !T80.a(this.b, j)) {
            if (T80.e(j)) {
                this.a = null;
                this.b = 9205357640488583168L;
                wt = null;
            } else {
                wt = this.a;
                if (wt == null) {
                    wt = new WT(25, false);
                    this.a = wt;
                }
                wt.m = b(j);
                this.a = wt;
                this.b = j;
            }
        }
        long jB = AbstractC0752ap.b(paint.getColor());
        long j2 = C0190Hi.b;
        if (!C0190Hi.c(jB, j2)) {
            ew0.f(j2);
        }
        if (!F3.c((Shader) ew0.c, wt != null ? (Shader) wt.m : null)) {
            Shader shader = wt != null ? (Shader) wt.m : null;
            ew0.c = shader;
            paint.setShader(shader);
        }
        if (paint.getAlpha() / 255.0f == f) {
            return;
        }
        ew0.d(f);
    }

    public abstract Shader b(long j);
}
