diff options
| author | 2016-07-14 08:02:14 -0700 | |
|---|---|---|
| committer | 2016-07-14 08:02:14 -0700 | |
| commit | b1e2c72041da3d3fcc042d5f19ce1e33466a0e01 (patch) | |
| tree | 142267d6264d156e63da6fa4c6e57261374f3747 | |
| parent | e500bfe46f223850ff851815d6736747a0fbb77f (diff) | |
Disable support for EGL_ANDROID_get_frame_timestamps
Bug 22764477
Change-Id: Ic7abe534b2f712dd1442364eb1fec3d1fbe0ee91
| -rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index 7a0cce48b2..fcb9357251 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -54,6 +54,8 @@ using namespace android; // Implementation is incomplete and untested. #define ENABLE_EGL_KHR_GL_COLORSPACE 0 +#define ENABLE_EGL_ANDROID_GET_FRAME_TIMESTAMPS 0 + // ---------------------------------------------------------------------------- namespace android { @@ -84,7 +86,9 @@ extern char const * const gBuiltinExtensionString = "EGL_KHR_swap_buffers_with_damage " "EGL_ANDROID_create_native_client_buffer " "EGL_ANDROID_front_buffer_auto_refresh " +#if ENABLE_EGL_ANDROID_GET_FRAME_TIMESTAMPS "EGL_ANDROID_get_frame_timestamps " +#endif ; extern char const * const gExtensionString = "EGL_KHR_image " // mandatory @@ -1212,10 +1216,12 @@ EGLBoolean eglSurfaceAttrib( setError(EGL_BAD_SURFACE, EGL_FALSE); } +#if ENABLE_EGL_ANDROID_GET_FRAME_TIMESTAMPS if (attribute == EGL_TIMESTAMPS_ANDROID) { s->enableTimestamps = value; return EGL_TRUE; } +#endif if (s->cnx->egl.eglSurfaceAttrib) { return s->cnx->egl.eglSurfaceAttrib( @@ -2036,6 +2042,7 @@ EGLBoolean eglQueryTimestampSupportedANDROID(EGLDisplay dpy, EGLSurface surface, } switch (timestamp) { +#if ENABLE_EGL_ANDROID_GET_FRAME_TIMESTAMPS case EGL_QUEUE_TIME_ANDROID: case EGL_RENDERING_COMPLETE_TIME_ANDROID: case EGL_COMPOSITION_START_TIME_ANDROID: @@ -2043,6 +2050,7 @@ EGLBoolean eglQueryTimestampSupportedANDROID(EGLDisplay dpy, EGLSurface surface, case EGL_DISPLAY_RETIRE_TIME_ANDROID: case EGL_READS_DONE_TIME_ANDROID: return EGL_TRUE; +#endif default: return EGL_FALSE; } |