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); |
220 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void); | 222 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void); |
221 GL_APICALL void GL_APIENTRY glSetSurfaceCHROMIUM (GLint surface_id); | 223 GL_APICALL void GL_APIENTRY glSetSurfaceCHROMIUM (GLint surface_id); |
222 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum*
pnames, GLuint count, GLint* results, GLsizeiptr size); | 224 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum*
pnames, GLuint count, GLint* results, GLsizeiptr size); |
223 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM (GLidProgram progra
m, GLsizeiNotNegative bufsize, GLsizei* size, void* info); | 225 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM (GLidProgram progra
m, GLsizeiNotNegative bufsize, GLsizei* size, void* info); |
224 """ | 226 """ |
225 | 227 |
226 # This is the list of all commmands that will be generated and their Id. | 228 # This is the list of all commmands that will be generated and their Id. |
227 # If a command is not listed in this table it is an error. | 229 # If a command is not listed in this table it is an error. |
228 # This lets us make sure that command ids do not change as the generator | 230 # This lets us make sure that command ids do not change as the generator |
229 # generates new variations of commands. | 231 # generates new variations of commands. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 'RegisterSharedIdsCHROMIUM': 441, | 419 'RegisterSharedIdsCHROMIUM': 441, |
418 'CommandBufferEnableCHROMIUM': 442, | 420 'CommandBufferEnableCHROMIUM': 442, |
419 'CompressedTexImage2DBucket': 443, | 421 'CompressedTexImage2DBucket': 443, |
420 'CompressedTexSubImage2DBucket': 444, | 422 'CompressedTexSubImage2DBucket': 444, |
421 'RenderbufferStorageMultisampleEXT': 445, | 423 'RenderbufferStorageMultisampleEXT': 445, |
422 'BlitFramebufferEXT': 446, | 424 'BlitFramebufferEXT': 446, |
423 'CopyTextureToParentTextureCHROMIUM': 447, | 425 'CopyTextureToParentTextureCHROMIUM': 447, |
424 'ResizeCHROMIUM': 448, | 426 'ResizeCHROMIUM': 448, |
425 'GetRequestableExtensionsCHROMIUM': 449, | 427 'GetRequestableExtensionsCHROMIUM': 449, |
426 'RequestExtensionCHROMIUM': 450, | 428 'RequestExtensionCHROMIUM': 450, |
| 429 'SetLatchCHROMIUM': 451, |
| 430 'WaitLatchCHROMIUM': 452, |
427 'SetSurfaceCHROMIUM': 453, | 431 'SetSurfaceCHROMIUM': 453, |
428 'GetMultipleIntegervCHROMIUM': 454, | 432 'GetMultipleIntegervCHROMIUM': 454, |
429 'GetProgramInfoCHROMIUM': 455, | 433 'GetProgramInfoCHROMIUM': 455, |
430 } | 434 } |
431 | 435 |
432 # This is a list of enum names and their valid values. It is used to map | 436 # This is a list of enum names and their valid values. It is used to map |
433 # GLenum arguments to a specific set of valid values. | 437 # GLenum arguments to a specific set of valid values. |
434 _ENUM_LISTS = { | 438 _ENUM_LISTS = { |
435 'BlitFilter': { | 439 'BlitFilter': { |
436 'type': 'GLenum', | 440 'type': 'GLenum', |
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1726 'chromium': True, | 1730 'chromium': True, |
1727 }, | 1731 }, |
1728 'RequestExtensionCHROMIUM': { | 1732 'RequestExtensionCHROMIUM': { |
1729 'type': 'Custom', | 1733 'type': 'Custom', |
1730 'impl_func': False, | 1734 'impl_func': False, |
1731 'immediate': False, | 1735 'immediate': False, |
1732 'cmd_args': 'uint32 bucket_id', | 1736 'cmd_args': 'uint32 bucket_id', |
1733 'extension': True, | 1737 'extension': True, |
1734 'chromium': True, | 1738 'chromium': True, |
1735 }, | 1739 }, |
| 1740 'SetLatchCHROMIUM': { |
| 1741 'type': 'Custom', |
| 1742 }, |
| 1743 'WaitLatchCHROMIUM': { |
| 1744 'type': 'Custom', |
| 1745 }, |
1736 'RateLimitOffscreenContextCHROMIUM': { | 1746 'RateLimitOffscreenContextCHROMIUM': { |
1737 'gen_cmd': False, | 1747 'gen_cmd': False, |
1738 'extension': True, | 1748 'extension': True, |
1739 'chromium': True, | 1749 'chromium': True, |
1740 }, | 1750 }, |
1741 } | 1751 } |
1742 | 1752 |
1743 | 1753 |
1744 def SplitWords(input_string): | 1754 def SplitWords(input_string): |
1745 """Transforms a input_string into a list of lower-case components. | 1755 """Transforms a input_string into a list of lower-case components. |
(...skipping 4183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5929 | 5939 |
5930 if options.generate_docs: | 5940 if options.generate_docs: |
5931 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") | 5941 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") |
5932 | 5942 |
5933 if gen.errors > 0: | 5943 if gen.errors > 0: |
5934 print "%d errors" % gen.errors | 5944 print "%d errors" % gen.errors |
5935 sys.exit(1) | 5945 sys.exit(1) |
5936 | 5946 |
5937 if __name__ == '__main__': | 5947 if __name__ == '__main__': |
5938 main(sys.argv[1:]) | 5948 main(sys.argv[1:]) |
OLD | NEW |