package c.o.b.a; import android.opengl.EGL14; import android.opengl.EGLContext; import android.opengl.EGLDisplay; import android.opengl.EGLSurface; import c.o.b.c.b; import c.o.b.c.c; import c.o.b.c.d; import c.o.b.c.e; /* compiled from: EglCore.kt */ public final class a extends c { public a(EGLContext eGLContext, int i) { super(new b(eGLContext), i); } public void b() { c cVar = this.a; c cVar2 = d.b; if (cVar != cVar2) { e eVar = d.f1512c; b bVar = d.a; EGLDisplay eGLDisplay = cVar.a; EGLSurface eGLSurface = eVar.a; EGL14.eglMakeCurrent(eGLDisplay, eGLSurface, eGLSurface, bVar.a); EGL14.eglDestroyContext(this.a.a, this.b.a); EGL14.eglReleaseThread(); EGL14.eglTerminate(this.a.a); } this.a = cVar2; this.b = d.a; this.f1510c = null; } public final void finalize() { b(); } }