summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-23 21:25:55 +0000
committerbrianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-23 21:25:55 +0000
commitfb4bf5829ab8a7c94ece5f2164c335557e341080 (patch)
tree1fd6d918a398b9ac19b5d2ed07dbe7294a332d83 /third_party
parentf6df20a058f09db4ce38d6bbad75d917a42ce9ee (diff)
downloadchromium_src-fb4bf5829ab8a7c94ece5f2164c335557e341080.zip
chromium_src-fb4bf5829ab8a7c94ece5f2164c335557e341080.tar.gz
chromium_src-fb4bf5829ab8a7c94ece5f2164c335557e341080.tar.bz2
Add CommandLatencyQuery to the gpu command buffer
Increases query result size to be 64 bits. Allows result to be used as input on the query begin. BUG= Review URL: https://chromiumcodereview.appspot.com/11235012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163683 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/khronos/GLES2/gl2ext.h7
-rw-r--r--third_party/khronos/README.chromium1
2 files changed, 8 insertions, 0 deletions
diff --git a/third_party/khronos/GLES2/gl2ext.h b/third_party/khronos/GLES2/gl2ext.h
index a452f3f..b6390b6 100644
--- a/third_party/khronos/GLES2/gl2ext.h
+++ b/third_party/khronos/GLES2/gl2ext.h
@@ -2003,6 +2003,13 @@ typedef void (GL_APIENTRYP PFNGLCOPYTEXTURECHROMIUM) (GLenum target, GLenum sour
#define GL_GET_ERROR_QUERY_CHROMIUM 0x84F3
#endif
+/* GL_CHROMIUM_command_buffer_latency_query */
+#ifndef GL_CHROMIUM_command_buffer_latency_query
+#define GL_CHROMIUM_command_buffer_latency_query 1
+// TODO: Get official numbers for these constants.
+#define GL_LATENCY_QUERY_CHROMIUM 0x84F4
+#endif
+
/* GL_CHROMIUM_texture_mailbox */
#ifndef GL_CHROMIUM_texture_mailbox
#define GL_CHROMIUM_texture_mailbox 1
diff --git a/third_party/khronos/README.chromium b/third_party/khronos/README.chromium
index 4128e35..3cb6342 100644
--- a/third_party/khronos/README.chromium
+++ b/third_party/khronos/README.chromium
@@ -24,6 +24,7 @@ GLES2/gl2ext.h
- Added ANGLE_instanced_arrays
- Added GL_EXT_framebuffer_multisample
- Added GL_CHROMIUM_command_buffer_query
+ - Added GL_CHROMIUM_command_buffer_latency_query
- Added GL_CHROMIUM_copy_texture
- Added GL_CHROMIUM_bind_uniform_location
- Added GL_CHROMIUM_get_error_query