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
commitc1e3ec555b79b1e45fccbdf0bbc8ac2d51902860 (patch)
tree67d08ce1adc9ddfedc790b907ef3de15041e00d9 /opengl/include
parent3a7e1832ac940cf5b8f92d3c3e8e8e5303c3c34e (diff)
downloadframeworks_base-c1e3ec555b79b1e45fccbdf0bbc8ac2d51902860.zip
frameworks_base-c1e3ec555b79b1e45fccbdf0bbc8ac2d51902860.tar.gz
frameworks_base-c1e3ec555b79b1e45fccbdf0bbc8ac2d51902860.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..53e9e6116 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