package com.tencent.mm.plugin.appbrand.widget.desktop.dynamicbackground;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.widget.desktop.dynamicbackground.GLSurfaceView.g;
import com.tencent.mm.sdk.platformtools.ab;
import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.egl.EGLDisplay;
import javax.microedition.khronos.egl.EGLSurface;

class GLSurfaceView$d implements g {
    private GLSurfaceView$d() {
    }

    /* synthetic */ GLSurfaceView$d(byte b) {
        this();
    }

    public final EGLSurface createWindowSurface(EGL10 egl10, EGLDisplay eGLDisplay, EGLConfig eGLConfig, Object obj) {
        EGLSurface eGLSurface = null;
        AppMethodBeat.i(133979);
        try {
            eGLSurface = egl10.eglCreateWindowSurface(eGLDisplay, eGLConfig, obj, null);
        } catch (IllegalArgumentException e) {
            ab.e("CustomGLSurfaceView", "eglCreateWindowSurface", new Object[]{e});
        }
        AppMethodBeat.o(133979);
        return eGLSurface;
    }

    public final void destroySurface(EGL10 egl10, EGLDisplay eGLDisplay, EGLSurface eGLSurface) {
        AppMethodBeat.i(133980);
        egl10.eglDestroySurface(eGLDisplay, eGLSurface);
        AppMethodBeat.o(133980);
    }
}
