Files
rr3-apk/decompiled/sources/com/unity3d/ads/gl/EglSurfaceBase.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

44 lines
1.4 KiB
Java

package com.unity3d.ads.gl;
import android.opengl.EGL14;
import android.opengl.EGLSurface;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@SourceDebugExtension({"SMAP\nEglSurfaceBase.kt\nKotlin\n*S Kotlin\n*F\n+ 1 EglSurfaceBase.kt\ncom/unity3d/ads/gl/EglSurfaceBase\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,42:1\n1#2:43\n*E\n"})
/* loaded from: classes4.dex */
public class EglSurfaceBase {
private EGLSurface mEGLSurface;
private EglCore mEglCore;
private int mHeight;
private int mWidth;
public EglSurfaceBase(EglCore eglCore) {
Intrinsics.checkNotNullParameter(eglCore, "eglCore");
this.mEGLSurface = EGL14.EGL_NO_SURFACE;
this.mWidth = -1;
this.mHeight = -1;
this.mEglCore = eglCore;
}
public final void createOffscreenSurface(int i, int i2) {
if (this.mEGLSurface != EGL14.EGL_NO_SURFACE) {
throw new IllegalStateException("surface already created".toString());
}
this.mEGLSurface = this.mEglCore.createOffscreenSurface(i, i2);
this.mWidth = i;
this.mHeight = i2;
}
public final void releaseEglSurface() {
this.mEglCore.releaseSurface(this.mEGLSurface);
this.mEGLSurface = EGL14.EGL_NO_SURFACE;
this.mHeight = -1;
this.mWidth = -1;
}
public final void makeCurrent() {
this.mEglCore.makeCurrent(this.mEGLSurface);
}
}