summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/build_gles2_cmd_buffer.py
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 00:00:40 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 00:00:40 +0000
commit1e6f58db132a6e641299f7cb2502dbf88a06b454 (patch)
tree75020e23a3df5fa5162494850e93c0af8a3ffa00 /gpu/command_buffer/build_gles2_cmd_buffer.py
parent5aea18697928ef225433a2c0a334f192fc4eb8e1 (diff)
downloadchromium_src-1e6f58db132a6e641299f7cb2502dbf88a06b454.zip
chromium_src-1e6f58db132a6e641299f7cb2502dbf88a06b454.tar.gz
chromium_src-1e6f58db132a6e641299f7cb2502dbf88a06b454.tar.bz2
Implement latch system to help with GPU compositing flow control.
TEST=unit tests BUG=none Review URL: http://codereview.chromium.org/6719014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79218 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-xgpu/command_buffer/build_gles2_cmd_buffer.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index c050afe..d827b82 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -211,6 +211,8 @@ GL_APICALL void GL_APIENTRY glCopyTextureToParentTextureCHROMIUM (GLidBi
GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint height);
GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void);
GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const char* extension);
+GL_APICALL void GL_APIENTRY glSetLatchCHROMIUM (GLint shm_id, GLuint latch_id);
+GL_APICALL void GL_APIENTRY glWaitLatchCHROMIUM (GLint shm_id, GLuint latch_id);
"""
# This is the list of all commmands that will be generated and their Id.
@@ -414,6 +416,8 @@ _CMD_ID_TABLE = {
'ResizeCHROMIUM': 448,
'GetRequestableExtensionsCHROMIUM': 449,
'RequestExtensionCHROMIUM': 450,
+ 'SetLatchCHROMIUM': 451,
+ 'WaitLatchCHROMIUM': 452,
}
# This is a list of enum names and their valid values. It is used to map
@@ -1611,6 +1615,12 @@ _FUNCTION_INFO = {
'extension': True,
'chromium': True,
},
+ 'SetLatchCHROMIUM': {
+ 'type': 'Custom',
+ },
+ 'WaitLatchCHROMIUM': {
+ 'type': 'Custom',
+ },
}