summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-09-24 13:34:18 -0700
committerJamie Gennis <jgennis@google.com>2012-09-24 13:45:33 -0700
commit3ff48e5e69955b37292446c0f2ac98e8238bdaca (patch)
treef90e45b7237e2eeba299db730d6261c02c09b0fe /opengl
parent09b11432b64d368dee7be69480ab54256058376a (diff)
downloadframeworks_native-3ff48e5e69955b37292446c0f2ac98e8238bdaca.zip
frameworks_native-3ff48e5e69955b37292446c0f2ac98e8238bdaca.tar.gz
frameworks_native-3ff48e5e69955b37292446c0f2ac98e8238bdaca.tar.bz2
EGL: add the EGL_ANDROID_framebuffer_target enum
Change-Id: Id8b1b114e2a7a88956b857c63a0429e9b33fdb5c
Diffstat (limited to 'opengl')
-rw-r--r--opengl/include/EGL/eglext.h7
-rw-r--r--opengl/libs/EGL/egl_display.cpp1
2 files changed, 8 insertions, 0 deletions
diff --git a/opengl/include/EGL/eglext.h b/opengl/include/EGL/eglext.h
index 3348039..8578874 100644
--- a/opengl/include/EGL/eglext.h
+++ b/opengl/include/EGL/eglext.h
@@ -304,6 +304,13 @@ EGLAPI EGLint EGLAPIENTRY eglWaitSyncANDROID(EGLDisplay dpy, EGLSyncKHR sync, EG
typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCANDROID) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
#endif
+/* EGL_ANDROID_framebuffer_target
+ */
+#ifndef EGL_ANDROID_framebuffer_target
+#define EGL_ANDROID_framebuffer_target
+#define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
+#endif
+
#ifdef __cplusplus
}
#endif
diff --git a/opengl/libs/EGL/egl_display.cpp b/opengl/libs/EGL/egl_display.cpp
index 8fd5af1..7ca9e40 100644
--- a/opengl/libs/EGL/egl_display.cpp
+++ b/opengl/libs/EGL/egl_display.cpp
@@ -59,6 +59,7 @@ static char const * const sExtensionString =
// extensions not exposed to applications but used by the ANDROID system
// "EGL_ANDROID_recordable " // mandatory
+// "EGL_ANDROID_framebuffer_target " // mandatory for HWC 1.1
// "EGL_ANDROID_blob_cache " // strongly recommended
// "EGL_ANDROID_native_fence_sync " // strongly recommended
// "EGL_IMG_hibernate_process " // optional