created an new EGL extension called ANDROID_swap_rectangle

ANDROID_swap_rectangle allows to specify the rectangle affected by eglSwapBuffers(), anything outside of this rectangle is unchanged. in particular EGL_BUFFER_DESTROYED only applies to that rectangle. This extension as well as EGL_BUFFER_PRESERVED allow major optimizations on surfaceflinger, which can redraw only the dirty area during compositing.

However, ANDROID_swap_rectangle allows further optimizations in EGL by reducing the amount of copy-back needed. ANDROID_swap_rectangle is particularily important for software implementations.
7 files changed
tree: 2456c7861be6b9ee4b8f87fe086acb9a2b132b3a
  1. MODULE_LICENSE_APACHE2
  2. NOTICE
  3. awt/
  4. camera/
  5. cmds/
  6. im/
  7. include/
  8. libs/
  9. opengl/