open class EglWindowSurface : EglNativeWindowSurface
Recordable EGL window surface. It's good practice to explicitly release() the surface, preferably from a finally block.
<init> |
Set releaseSurface to true if you want the Surface to be released when release() is called. This is convenient, but can interfere with framework classes that expect to manage the Surface themselves (e.g. if you release a SurfaceView's Surface, the surfaceDestroyed() callback won't fire). EglWindowSurface(eglCore: EglCore, surface: <ERROR CLASS>, releaseSurface: Boolean = false)
Associates an EGL surface with the SurfaceTexture. EglWindowSurface(eglCore: EglCore, surfaceTexture: <ERROR CLASS>) |
release |
Releases any resources associated with the EGL surface. Does not require that the surface's EGL context be current. open fun release(): Unit |