WindowSurface

constructor(eglCore: EglCore, surface: Surface, releaseSurface: Boolean)

Associates an EGL surface with the native window surface.

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).


constructor(eglCore: EglCore, surfaceTexture: SurfaceTexture)

Associates an EGL surface with the SurfaceTexture.