summaryrefslogtreecommitdiffstats
path: root/opengl/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-06-24 22:37:39 -0700
committerMathias Agopian <mathias@google.com>2009-06-25 00:02:44 -0700
commit8d2e83b9f44c7f2207a312fcfda8eb3a4c26745f (patch)
tree4627e6412931f53b9fa275783fc3701707f2ea24 /opengl/include
parentaf74213546acc887b2b9e93459124cefd7f5e335 (diff)
downloadframeworks_native-8d2e83b9f44c7f2207a312fcfda8eb3a4c26745f.zip
frameworks_native-8d2e83b9f44c7f2207a312fcfda8eb3a4c26745f.tar.gz
frameworks_native-8d2e83b9f44c7f2207a312fcfda8eb3a4c26745f.tar.bz2
Add eglGetRenderBufferANDROID() extension, which returns the current render buffer as an android_native_buffer_t*
Diffstat (limited to 'opengl/include')
-rw-r--r--opengl/include/EGL/eglext.h16
-rw-r--r--opengl/include/EGL/eglplatform.h6
2 files changed, 14 insertions, 8 deletions
diff --git a/opengl/include/EGL/eglext.h b/opengl/include/EGL/eglext.h
index 335b0b0..545fd0e 100644
--- a/opengl/include/EGL/eglext.h
+++ b/opengl/include/EGL/eglext.h
@@ -132,6 +132,20 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGL
#endif
+#ifndef EGL_ANDROID_image_native_buffer
+#define EGL_ANDROID_image_native_buffer 1
+struct android_native_buffer_t;
+#define EGL_NATIVE_BUFFER_ANDROID 0x3140 /* eglCreateImageKHR target */
+#endif
+
+#ifndef EGL_ANDROID_get_render_buffer
+#define EGL_ANDROID_get_render_buffer 1
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLClientBuffer EGLAPIENTRY eglGetRenderBufferANDROID(EGLDisplay dpy, EGLSurface draw);
+#endif
+typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLGETRENDERBUFFERANDROIDPROC) (EGLDisplay dpy, EGLSurface draw);
+#endif
+
#ifndef EGL_ANDROID_swap_rectangle
#define EGL_ANDROID_swap_rectangle 1
#ifdef EGL_EGLEXT_PROTOTYPES
@@ -141,8 +155,6 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSWAPRECTANGLEANDROIDPROC) (EGLDisplay
#endif
-
-
#ifdef __cplusplus
}
#endif
diff --git a/opengl/include/EGL/eglplatform.h b/opengl/include/EGL/eglplatform.h
index 11aa4e2..53e9e61 100644
--- a/opengl/include/EGL/eglplatform.h
+++ b/opengl/include/EGL/eglplatform.h
@@ -96,12 +96,6 @@ typedef struct android_native_window_t* EGLNativeWindowType;
typedef struct egl_native_pixmap_t* EGLNativePixmapType;
typedef void* EGLNativeDisplayType;
-#ifndef EGL_ANDROID_image_native_buffer
-#define EGL_ANDROID_image_native_buffer 1
-struct android_native_buffer_t;
-#define EGL_NATIVE_BUFFER_ANDROID 0x3140 /* eglCreateImageKHR target */
-#endif
-
#else
#error "Platform not recognized"
#endif