Recently I am confused with GLSurfaceView. In java level, it use glsurfaceview and how it connect with surfaceflinger?
thanks james.
Recently I am confused with GLSurfaceView. In java level, it use glsurfaceview and how it connect with surfaceflinger?
thanks james.
Using GLSurfaceView , you will draw into a EGLSurface which is created from A Surface. The surface ,inside of surfaceFlinger, is called SurfaceTexture with a BufferQueue . Therefore, SurfacFlinger still own that piece of memory the GLSurfaceView will be drawing to and thus could composite it.
Have a look here. In brief:
Surface
instances. GLSurfaceView
contains a Surface
that can be drawn to using OpenGL ES.