0

Recently I am confused with GLSurfaceView. In java level, it use glsurfaceview and how it connect with surfaceflinger?

thanks james.

james
  • 335
  • 1
  • 5
  • 18

2 Answers2

1

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.

pierrotlefou
  • 39,805
  • 37
  • 135
  • 175
0

Have a look here. In brief:

  • The surface flinger is the compositor and handles drawing Surface instances.
  • A GLSurfaceView contains a Surface that can be drawn to using OpenGL ES.
Community
  • 1
  • 1
Stefan Hanke
  • 3,458
  • 2
  • 30
  • 34