diff options
author | Arne Coucheron <arco68@gmail.com> | 2011-09-18 06:24:01 +0200 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2011-09-18 06:40:51 +0200 |
commit | 4133181ba5c3777a719253134d38140491dba783 (patch) | |
tree | 337d14cd0c24b1ac20b9c7cadf29d958b7781cd9 /opengl/include | |
parent | 9f3cd90bcc4b954d1f52e1c732c958d3b8bba426 (diff) | |
download | frameworks_base-4133181ba5c3777a719253134d38140491dba783.zip frameworks_base-4133181ba5c3777a719253134d38140491dba783.tar.gz frameworks_base-4133181ba5c3777a719253134d38140491dba783.tar.bz2 |
libagl: Add eglGetRenderBufferANDROID() extension
which returns the current render buffer as an android_native_buffer_t*
This was removed in AOSP for Gingerbread, but at CAF they put it back
as part of their patch for re-enabling the usage of copybit for
accelerating 2D rendering -> http://tinyurl.com/65mm5p6
Change-Id: I0165bf5b481ae097848c1c644785819f0c127ef1
Diffstat (limited to 'opengl/include')
-rw-r--r-- | opengl/include/EGL/eglext.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/opengl/include/EGL/eglext.h b/opengl/include/EGL/eglext.h index 1ffcd56..b121158 100644 --- a/opengl/include/EGL/eglext.h +++ b/opengl/include/EGL/eglext.h @@ -229,6 +229,14 @@ 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 |