package com.tencent.magicbrush;

import com.tencent.magicbrush.a.c.c;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.Iterator;

class MBRuntime$b implements MBRuntime$IMBEventListener {
    final /* synthetic */ MBRuntime bSn;

    private MBRuntime$b(MBRuntime mBRuntime) {
        this.bSn = mBRuntime;
    }

    /* synthetic */ MBRuntime$b(MBRuntime mBRuntime, byte b) {
        this(mBRuntime);
    }

    public final void onSystemSizeChanged(int i, int i2) {
        AppMethodBeat.i(115796);
        c.i("MicroMsg.MagicBrush.MBRuntime", "ClientEventListener.onSystemSizeChanged [%d, %d]", new Object[]{Integer.valueOf(i), Integer.valueOf(i2)});
        MBRuntime.access$1202(this.bSn, i);
        MBRuntime.access$1302(this.bSn, i2);
        Iterator it = MBRuntime.access$1400(this.bSn).iterator();
        while (it.hasNext()) {
            ((MBRuntime$IMBEventListener) it.next()).onSystemSizeChanged(i, i2);
        }
        AppMethodBeat.o(115796);
    }

    public final void onRendererReady(int i, int i2) {
        AppMethodBeat.i(115797);
        c.i("MicroMsg.MagicBrush.MBRuntime", "ClientEventListener.onRendererReady [%d, %d]", new Object[]{Integer.valueOf(i), Integer.valueOf(i2)});
        MBRuntime.access$1202(this.bSn, i);
        MBRuntime.access$1302(this.bSn, i2);
        Iterator it = MBRuntime.access$1400(this.bSn).iterator();
        while (it.hasNext()) {
            ((MBRuntime$IMBEventListener) it.next()).onRendererReady(i, i2);
        }
        AppMethodBeat.o(115797);
    }

    public final void onFirstFrameRendered() {
        AppMethodBeat.i(115798);
        c.i("MicroMsg.MagicBrush.MBRuntime", "ClientEventListener.onFirstFrameRendered ", new Object[0]);
        Iterator it = MBRuntime.access$1400(this.bSn).iterator();
        while (it.hasNext()) {
            ((MBRuntime$IMBEventListener) it.next()).onFirstFrameRendered();
        }
        AppMethodBeat.o(115798);
    }

    public final void onMainCanvasCreated(int i) {
        AppMethodBeat.i(115799);
        MBRuntime.access$1502(this.bSn, i);
        AppMethodBeat.o(115799);
    }

    public final void onMainCanvasTypeDefined(int i) {
        AppMethodBeat.i(115800);
        c.i("MicroMsg.MagicBrush.MBRuntime", "ClientEventListener.onMainCanvasTypeDefined ", new Object[0]);
        Iterator it = MBRuntime.access$1400(this.bSn).iterator();
        while (it.hasNext()) {
            ((MBRuntime$IMBEventListener) it.next()).onMainCanvasTypeDefined(i);
        }
        AppMethodBeat.o(115800);
    }

    public final void onError(int i) {
        AppMethodBeat.i(115801);
        c.i("MicroMsg.MagicBrush.MBRuntime", "ClientEventListener.onError ", new Object[0]);
        Iterator it = MBRuntime.access$1400(this.bSn).iterator();
        while (it.hasNext()) {
            ((MBRuntime$IMBEventListener) it.next()).onError(i);
        }
        AppMethodBeat.o(115801);
    }

    public final void onJsExceptionOccurred(String str, String str2, int i) {
        AppMethodBeat.i(115802);
        Iterator it = MBRuntime.access$1400(this.bSn).iterator();
        while (it.hasNext()) {
            ((MBRuntime$IMBEventListener) it.next()).onJsExceptionOccurred(str, str2, i);
        }
        AppMethodBeat.o(115802);
    }

    public final void onConsoleOutput(String str) {
        AppMethodBeat.i(115803);
        Iterator it = MBRuntime.access$1400(this.bSn).iterator();
        while (it.hasNext()) {
            ((MBRuntime$IMBEventListener) it.next()).onConsoleOutput(str);
        }
        AppMethodBeat.o(115803);
    }
}
