diff options
author | Jamie Gennis <jgennis@google.com> | 2012-09-06 14:52:00 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-06 16:11:37 -0700 |
commit | 331841b96b92646c93c87627c03f77b892f711cd (patch) | |
tree | 2fe3a05c800a44e2f6fd7d94d380fe23ee58b7d8 /opengl/include | |
parent | 8893d5bba1191b0dc9db1432868d8dc64de606ad (diff) | |
download | frameworks_native-331841b96b92646c93c87627c03f77b892f711cd.zip frameworks_native-331841b96b92646c93c87627c03f77b892f711cd.tar.gz frameworks_native-331841b96b92646c93c87627c03f77b892f711cd.tar.bz2 |
EGL: add the native_fence_sync extension
This change adds support for the EGL_ANDROID_native_fence_sync extension to the
Android EGL layer. It also fixes a couple minor issues with the extension spec.
Change-Id: Ic8829d21f37b701f33aa9c72c3d25e88e03fa3cd
Diffstat (limited to 'opengl/include')
-rw-r--r-- | opengl/include/EGL/eglext.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/opengl/include/EGL/eglext.h b/opengl/include/EGL/eglext.h index 2d41aa7..7274854 100644 --- a/opengl/include/EGL/eglext.h +++ b/opengl/include/EGL/eglext.h @@ -270,6 +270,20 @@ typedef EGLBoolean (EGLAPIENTRYP PFEGLHIBERNATEPROCESSIMGPROC)(void); typedef EGLBoolean (EGLAPIENTRYP PFEGLAWAKENPROCESSIMGPROC)(void); #endif +/* EGL_ANDROID_native_fence_sync + */ +#ifndef EGL_ANDROID_native_fence_sync +#define EGL_ANDROID_native_fence_sync 1 +#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144 +#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145 +#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1 +#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146 +#ifdef EGL_EGLEXT_PROTOTYPES +EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID(EGLDisplay dpy, EGLSyncKHR sync); +#endif +typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROID) (EGLDisplay dpy, EGLSyncKHR sync); +#endif + #ifdef __cplusplus } #endif |