GLSurFaceView特性:
- 1、管理一个surface,这个surface就是一块特殊的内存,能直接排版到android的视图view上。\
Manages a surface, which is a special piece of memory that can be composited into the Android view system. - 2、管理一个EGL display,它能让opengl把内容渲染到上述的surface上。\
Manages an EGL display, which enables OpenGL to render into a surface. - 3、用户自定义渲染器(render)。\
Accepts a user-provided Renderer object that does the actual rendering. - 4、让渲染器在独立的线程里运作,和UI线程分离。\
Renders on a dedicated thread to decouple rendering performance from the UI thread. - 5、支持按需渲染(on-demand)和连续渲染(continuous)。\
Supports both on-demand and continuous rendering. - 6、可以封装、跟踪并且排查渲染器的问题。\
Optionally wraps, traces, and/or error-checks the renderer’s OpenGL calls.