I have OpenGL ES code that was rendering for GLSurfaceView , and now I'm modifying it to work with SurfaceView and TextureView .
A common element that I need from within my own code is: ANativeWindow .
For SurfaceView I got it by passing Surface to:
m_jwindow = ANativeWindow_fromSurface(env, surface);
For TextureView I take SurfaceTexture , and in API 14 I can use this:
m_jwindow = ANativeWindow_fromSurfaceTexture(env, surface);
However, this feature has been removed in Jellybean. Why am I wondering how I can get ANativeWindow from SurfaceTexture in API SurfaceTexture ?
source share