Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 7253052: Execute all GL commands up to the put offset reported by a flush. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """code generator for GLES2 command buffers.""" 7 """code generator for GLES2 command buffers."""
8 8
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 GL_APICALL void GL_APIENTRY glRegisterSharedIdsCHROMIUM (GLuint namespac e_id, GLsizeiNotNegative n, const GLuint* ids); 210 GL_APICALL void GL_APIENTRY glRegisterSharedIdsCHROMIUM (GLuint namespac e_id, GLsizeiNotNegative n, const GLuint* ids);
211 GL_APICALL GLboolean GL_APIENTRY glCommandBufferEnableCHROMIUM (const char* f eature); 211 GL_APICALL GLboolean GL_APIENTRY glCommandBufferEnableCHROMIUM (const char* f eature);
212 GL_APICALL void* GL_APIENTRY glMapBufferSubDataCHROMIUM (GLuint target, G LintptrNotNegative offset, GLsizeiptr size, GLenum access); 212 GL_APICALL void* GL_APIENTRY glMapBufferSubDataCHROMIUM (GLuint target, G LintptrNotNegative offset, GLsizeiptr size, GLenum access);
213 GL_APICALL void GL_APIENTRY glUnmapBufferSubDataCHROMIUM (const void* me m); 213 GL_APICALL void GL_APIENTRY glUnmapBufferSubDataCHROMIUM (const void* me m);
214 GL_APICALL void* GL_APIENTRY glMapTexSubImage2DCHROMIUM (GLenum target, G Lint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLenum access); 214 GL_APICALL void* GL_APIENTRY glMapTexSubImage2DCHROMIUM (GLenum target, G Lint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLenum access);
215 GL_APICALL void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM (const void* me m); 215 GL_APICALL void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM (const void* me m);
216 GL_APICALL void GL_APIENTRY glCopyTextureToParentTextureCHROMIUM (GLidBi ndTexture client_child_id, GLidBindTexture client_parent_id); 216 GL_APICALL void GL_APIENTRY glCopyTextureToParentTextureCHROMIUM (GLidBi ndTexture client_child_id, GLidBindTexture client_parent_id);
217 GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint heigh t); 217 GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint heigh t);
218 GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void); 218 GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void);
219 GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const char* exte nsion); 219 GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const char* exte nsion);
220 GL_APICALL void GL_APIENTRY glSetLatchCHROMIUM (GLuint latch_id);
221 GL_APICALL void GL_APIENTRY glWaitLatchCHROMIUM (GLuint latch_id);
222 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void); 220 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void);
223 GL_APICALL void GL_APIENTRY glSetSurfaceCHROMIUM (GLint surface_id); 221 GL_APICALL void GL_APIENTRY glSetSurfaceCHROMIUM (GLint surface_id);
224 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size); 222 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size);
225 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM (GLidProgram progra m, GLsizeiNotNegative bufsize, GLsizei* size, void* info); 223 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM (GLidProgram progra m, GLsizeiNotNegative bufsize, GLsizei* size, void* info);
226 """ 224 """
227 225
228 # This is the list of all commmands that will be generated and their Id. 226 # This is the list of all commmands that will be generated and their Id.
229 # If a command is not listed in this table it is an error. 227 # If a command is not listed in this table it is an error.
230 # This lets us make sure that command ids do not change as the generator 228 # This lets us make sure that command ids do not change as the generator
231 # generates new variations of commands. 229 # generates new variations of commands.
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 'RegisterSharedIdsCHROMIUM': 441, 417 'RegisterSharedIdsCHROMIUM': 441,
420 'CommandBufferEnableCHROMIUM': 442, 418 'CommandBufferEnableCHROMIUM': 442,
421 'CompressedTexImage2DBucket': 443, 419 'CompressedTexImage2DBucket': 443,
422 'CompressedTexSubImage2DBucket': 444, 420 'CompressedTexSubImage2DBucket': 444,
423 'RenderbufferStorageMultisampleEXT': 445, 421 'RenderbufferStorageMultisampleEXT': 445,
424 'BlitFramebufferEXT': 446, 422 'BlitFramebufferEXT': 446,
425 'CopyTextureToParentTextureCHROMIUM': 447, 423 'CopyTextureToParentTextureCHROMIUM': 447,
426 'ResizeCHROMIUM': 448, 424 'ResizeCHROMIUM': 448,
427 'GetRequestableExtensionsCHROMIUM': 449, 425 'GetRequestableExtensionsCHROMIUM': 449,
428 'RequestExtensionCHROMIUM': 450, 426 'RequestExtensionCHROMIUM': 450,
429 'SetLatchCHROMIUM': 451,
430 'WaitLatchCHROMIUM': 452,
431 'SetSurfaceCHROMIUM': 453, 427 'SetSurfaceCHROMIUM': 453,
432 'GetMultipleIntegervCHROMIUM': 454, 428 'GetMultipleIntegervCHROMIUM': 454,
433 'GetProgramInfoCHROMIUM': 455, 429 'GetProgramInfoCHROMIUM': 455,
434 } 430 }
435 431
436 # This is a list of enum names and their valid values. It is used to map 432 # This is a list of enum names and their valid values. It is used to map
437 # GLenum arguments to a specific set of valid values. 433 # GLenum arguments to a specific set of valid values.
438 _ENUM_LISTS = { 434 _ENUM_LISTS = {
439 'BlitFilter': { 435 'BlitFilter': {
440 'type': 'GLenum', 436 'type': 'GLenum',
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 'chromium': True, 1726 'chromium': True,
1731 }, 1727 },
1732 'RequestExtensionCHROMIUM': { 1728 'RequestExtensionCHROMIUM': {
1733 'type': 'Custom', 1729 'type': 'Custom',
1734 'impl_func': False, 1730 'impl_func': False,
1735 'immediate': False, 1731 'immediate': False,
1736 'cmd_args': 'uint32 bucket_id', 1732 'cmd_args': 'uint32 bucket_id',
1737 'extension': True, 1733 'extension': True,
1738 'chromium': True, 1734 'chromium': True,
1739 }, 1735 },
1740 'SetLatchCHROMIUM': {
1741 'type': 'Custom',
1742 },
1743 'WaitLatchCHROMIUM': {
1744 'type': 'Custom',
1745 },
1746 'RateLimitOffscreenContextCHROMIUM': { 1736 'RateLimitOffscreenContextCHROMIUM': {
1747 'gen_cmd': False, 1737 'gen_cmd': False,
1748 'extension': True, 1738 'extension': True,
1749 'chromium': True, 1739 'chromium': True,
1750 }, 1740 },
1751 } 1741 }
1752 1742
1753 1743
1754 def SplitWords(input_string): 1744 def SplitWords(input_string):
1755 """Transforms a input_string into a list of lower-case components. 1745 """Transforms a input_string into a list of lower-case components.
(...skipping 4281 matching lines...) Expand 10 before | Expand all | Expand 10 after
6037 6027
6038 if options.generate_docs: 6028 if options.generate_docs:
6039 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") 6029 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h")
6040 6030
6041 if gen.errors > 0: 6031 if gen.errors > 0:
6042 print "%d errors" % gen.errors 6032 print "%d errors" % gen.errors
6043 sys.exit(1) 6033 sys.exit(1)
6044 6034
6045 if __name__ == '__main__': 6035 if __name__ == '__main__':
6046 main(sys.argv[1:]) 6036 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc ('k') | gpu/command_buffer/client/cmd_buffer_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698