OLD | NEW |
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 Loading... |
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 """ | 223 """ |
226 | 224 |
227 # This is the list of all commmands that will be generated and their Id. | 225 # This is the list of all commmands that will be generated and their Id. |
228 # If a command is not listed in this table it is an error. | 226 # If a command is not listed in this table it is an error. |
229 # This lets us make sure that command ids do not change as the generator | 227 # This lets us make sure that command ids do not change as the generator |
230 # generates new variations of commands. | 228 # generates new variations of commands. |
231 | 229 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 'RegisterSharedIdsCHROMIUM': 441, | 416 'RegisterSharedIdsCHROMIUM': 441, |
419 'CommandBufferEnableCHROMIUM': 442, | 417 'CommandBufferEnableCHROMIUM': 442, |
420 'CompressedTexImage2DBucket': 443, | 418 'CompressedTexImage2DBucket': 443, |
421 'CompressedTexSubImage2DBucket': 444, | 419 'CompressedTexSubImage2DBucket': 444, |
422 'RenderbufferStorageMultisampleEXT': 445, | 420 'RenderbufferStorageMultisampleEXT': 445, |
423 'BlitFramebufferEXT': 446, | 421 'BlitFramebufferEXT': 446, |
424 'CopyTextureToParentTextureCHROMIUM': 447, | 422 'CopyTextureToParentTextureCHROMIUM': 447, |
425 'ResizeCHROMIUM': 448, | 423 'ResizeCHROMIUM': 448, |
426 'GetRequestableExtensionsCHROMIUM': 449, | 424 'GetRequestableExtensionsCHROMIUM': 449, |
427 'RequestExtensionCHROMIUM': 450, | 425 'RequestExtensionCHROMIUM': 450, |
428 'SetLatchCHROMIUM': 451, | |
429 'WaitLatchCHROMIUM': 452, | |
430 'SetSurfaceCHROMIUM': 453, | 426 'SetSurfaceCHROMIUM': 453, |
431 'GetMultipleIntegervCHROMIUM': 454, | 427 'GetMultipleIntegervCHROMIUM': 454, |
432 } | 428 } |
433 | 429 |
434 # This is a list of enum names and their valid values. It is used to map | 430 # This is a list of enum names and their valid values. It is used to map |
435 # GLenum arguments to a specific set of valid values. | 431 # GLenum arguments to a specific set of valid values. |
436 _ENUM_LISTS = { | 432 _ENUM_LISTS = { |
437 'BlitFilter': { | 433 'BlitFilter': { |
438 'type': 'GLenum', | 434 'type': 'GLenum', |
439 'valid': [ | 435 'valid': [ |
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1716 'chromium': True, | 1712 'chromium': True, |
1717 }, | 1713 }, |
1718 'RequestExtensionCHROMIUM': { | 1714 'RequestExtensionCHROMIUM': { |
1719 'type': 'Custom', | 1715 'type': 'Custom', |
1720 'impl_func': False, | 1716 'impl_func': False, |
1721 'immediate': False, | 1717 'immediate': False, |
1722 'cmd_args': 'uint32 bucket_id', | 1718 'cmd_args': 'uint32 bucket_id', |
1723 'extension': True, | 1719 'extension': True, |
1724 'chromium': True, | 1720 'chromium': True, |
1725 }, | 1721 }, |
1726 'SetLatchCHROMIUM': { | |
1727 'type': 'Custom', | |
1728 }, | |
1729 'WaitLatchCHROMIUM': { | |
1730 'type': 'Custom', | |
1731 }, | |
1732 'RateLimitOffscreenContextCHROMIUM': { | 1722 'RateLimitOffscreenContextCHROMIUM': { |
1733 'gen_cmd': False, | 1723 'gen_cmd': False, |
1734 'extension': True, | 1724 'extension': True, |
1735 'chromium': True, | 1725 'chromium': True, |
1736 }, | 1726 }, |
1737 } | 1727 } |
1738 | 1728 |
1739 | 1729 |
1740 def SplitWords(input_string): | 1730 def SplitWords(input_string): |
1741 """Transforms a input_string into a list of lower-case components. | 1731 """Transforms a input_string into a list of lower-case components. |
(...skipping 4281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6023 | 6013 |
6024 if options.generate_docs: | 6014 if options.generate_docs: |
6025 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") | 6015 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") |
6026 | 6016 |
6027 if gen.errors > 0: | 6017 if gen.errors > 0: |
6028 print "%d errors" % gen.errors | 6018 print "%d errors" % gen.errors |
6029 sys.exit(1) | 6019 sys.exit(1) |
6030 | 6020 |
6031 if __name__ == '__main__': | 6021 if __name__ == '__main__': |
6032 main(sys.argv[1:]) | 6022 main(sys.argv[1:]) |
OLD | NEW |