package com.tencent.mm.plugin.mmsight.segment;

import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.drawable.Drawable;
import com.tencent.matrix.trace.core.AppMethodBeat;

class n$b extends Drawable {
    final /* synthetic */ n ozl;
    boolean ozq = false;
    private Drawable ozr;
    private Drawable ozs;

    public n$b(n nVar, Drawable drawable, Drawable drawable2) {
        this.ozl = nVar;
        this.ozr = drawable;
        this.ozs = drawable2;
        this.ozq = false;
    }

    public final void draw(Canvas canvas) {
        Drawable drawable;
        AppMethodBeat.i(55013);
        if (this.ozq) {
            drawable = this.ozr;
        } else {
            drawable = this.ozs;
        }
        if (!getBounds().equals(drawable.getBounds())) {
            drawable.setBounds(getBounds());
        }
        drawable.draw(canvas);
        AppMethodBeat.o(55013);
    }

    public final void setAlpha(int i) {
        AppMethodBeat.i(55014);
        this.ozr.setAlpha(i);
        this.ozs.setAlpha(i);
        AppMethodBeat.o(55014);
    }

    public final void setColorFilter(ColorFilter colorFilter) {
        AppMethodBeat.i(55015);
        this.ozr.setColorFilter(colorFilter);
        this.ozs.setColorFilter(colorFilter);
        AppMethodBeat.o(55015);
    }

    public final int getOpacity() {
        return -3;
    }
}
