diff options
author | Andy McFadden <fadden@android.com> | 2013-03-01 16:25:32 -0800 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2013-03-05 10:10:59 -0800 |
commit | 7284145d564fa8a422a8e564a38c730fb4a2962b (patch) | |
tree | 2718dc96c11b65724204c669c873645fb37556af /opengl/include/EGL | |
parent | 306f18c5fb15ac05db09ece7241af02b9713a23d (diff) | |
download | frameworks_native-7284145d564fa8a422a8e564a38c730fb4a2962b.zip frameworks_native-7284145d564fa8a422a8e564a38c730fb4a2962b.tar.gz frameworks_native-7284145d564fa8a422a8e564a38c730fb4a2962b.tar.bz2 |
Add eglPresentationTimeANDROID
Added EGL extension to set a timestamp on a surface.
Also, fix JNI encoding of "long" in glgen.
Bug 8191230
Change-Id: I38b7334bade3f8ff02bffe600bb74469ef22c164
Diffstat (limited to 'opengl/include/EGL')
-rw-r--r-- | opengl/include/EGL/eglext.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/opengl/include/EGL/eglext.h b/opengl/include/EGL/eglext.h index 8578874..c8d228c 100644 --- a/opengl/include/EGL/eglext.h +++ b/opengl/include/EGL/eglext.h @@ -311,6 +311,18 @@ typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCANDROID) (EGLDisplay dpy, EGLSyncKHR #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147 #endif +/* EGL_ANDROID_presentation_time + */ +#ifndef EGL_ANDROID_presentation_time +#define EGL_ANDROID_presentation_time 1 +typedef khronos_stime_nanoseconds_t EGLnsecsANDROID; +#ifdef EGL_EGLEXT_PROTOTYPES +EGLAPI EGLBoolean eglPresentationTimeANDROID(EGLDisplay dpy, EGLSurface sur, EGLnsecsANDROID time); +#else +typedef EGLBoolean (EGLAPIENTRYP PFNEGLPRESENTATIONTIMEANDROID) (EGLDisplay dpy, EGLSurface sur, EGLnsecsANDROID time); +#endif +#endif + #ifdef __cplusplus } #endif |