createWindowSurface

open fun createWindowSurface(surface: Any): EGLSurface

Creates an EGL surface associated with a Surface.

If this is destined for MediaCodec, the EGLConfig should have the "recordable" attribute.