diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-10-05 13:14:29 -0700 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-10-05 13:14:29 -0700 |
commit | 76942a49740d6cf53fc5fe3c5a53f4de4011d954 (patch) | |
tree | 5f16d9c54b4a93536a6717e99fa96fbb090130c0 /opengl/libs | |
parent | 52f1edb3f11aae1af74a1bfc6f18f81b4d761358 (diff) | |
parent | f9752cc4cf4e4f36eaa6f19f607957b9eb496bc4 (diff) | |
download | frameworks_native-76942a49740d6cf53fc5fe3c5a53f4de4011d954.zip frameworks_native-76942a49740d6cf53fc5fe3c5a53f4de4011d954.tar.gz frameworks_native-76942a49740d6cf53fc5fe3c5a53f4de4011d954.tar.bz2 |
Merge "egl: Reintroduce eglGetRenderBufferANDROID"
Diffstat (limited to 'opengl/libs')
-rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index a1c6a7a..3d44bbe 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -70,6 +70,8 @@ static const extention_map_t sExtentionMap[] = { (__eglMustCastToProperFunctionPointerType)&eglCreateImageKHR }, { "eglDestroyImageKHR", (__eglMustCastToProperFunctionPointerType)&eglDestroyImageKHR }, + { "eglGetRenderBufferANDROID", + (__eglMustCastToProperFunctionPointerType)&eglGetRenderBufferANDROID }, { "eglGetSystemTimeFrequencyNV", (__eglMustCastToProperFunctionPointerType)&eglGetSystemTimeFrequencyNV }, { "eglGetSystemTimeNV", @@ -1191,7 +1193,21 @@ EGLBoolean eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, // ANDROID extensions // ---------------------------------------------------------------------------- -/* ANDROID extensions entry-point go here */ +EGLClientBuffer eglGetRenderBufferANDROID(EGLDisplay dpy, EGLSurface draw) +{ + clearError(); + + const egl_display_ptr dp = validate_display(dpy); + if (!dp) return EGL_FALSE; + + egl_surface_t const * const s = get_surface(draw); + + egl_connection_t* const cnx = &gEGLImpl; + if (cnx->dso && cnx->egl.eglGetRenderBufferANDROID) { + return cnx->egl.eglGetRenderBufferANDROID(dp->disp.dpy, s->surface); + } + return setError(EGL_BAD_DISPLAY, (EGLClientBuffer*)0); +} // ---------------------------------------------------------------------------- // NVIDIA extensions |