summaryrefslogtreecommitdiffstats
path: root/opengl/libs/egl_entries.in
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-05-04 19:29:25 -0700
committerMathias Agopian <mathias@google.com>2009-05-07 15:07:33 -0700
commit2e20bffbab8084fedce39d14d7dd17b08f6e9ba2 (patch)
treebe397ea1383b74bc09e48d591ca7aa2cc54f0539 /opengl/libs/egl_entries.in
parent9bd5da4db97fec7cdbe6e07870411c1fcaff4365 (diff)
downloadframeworks_base-2e20bffbab8084fedce39d14d7dd17b08f6e9ba2.zip
frameworks_base-2e20bffbab8084fedce39d14d7dd17b08f6e9ba2.tar.gz
frameworks_base-2e20bffbab8084fedce39d14d7dd17b08f6e9ba2.tar.bz2
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.
Diffstat (limited to 'opengl/libs/egl_entries.in')
-rw-r--r--opengl/libs/egl_entries.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/libs/egl_entries.in b/opengl/libs/egl_entries.in
index 3b4551b..1fe2b57 100644
--- a/opengl/libs/egl_entries.in
+++ b/opengl/libs/egl_entries.in
@@ -50,3 +50,7 @@ EGL_ENTRY(EGLBoolean, eglLockSurfaceKHR, EGLDisplay, EGLSurface, const EGLint
EGL_ENTRY(EGLBoolean, eglUnlockSurfaceKHR, EGLDisplay, EGLSurface)
EGL_ENTRY(EGLImageKHR, eglCreateImageKHR, EGLDisplay, EGLContext, EGLenum, EGLClientBuffer, const EGLint *)
EGL_ENTRY(EGLBoolean, eglDestroyImageKHR, EGLDisplay, EGLImageKHR)
+
+/* ANDROID extensions */
+
+EGL_ENTRY(EGLBoolean, eglSetSwapRectangleANDROID, EGLDisplay, EGLSurface, EGLint, EGLint, EGLint, EGLint)