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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
216 GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint heigh t); | 216 GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint heigh t); |
217 GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void); | 217 GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void); |
218 GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const char* exte nsion); | 218 GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const char* exte nsion); |
219 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void); | 219 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void); |
220 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size); | 220 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size); |
221 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM (GLidProgram progra m, GLsizeiNotNegative bufsize, GLsizei* size, void* info); | 221 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM (GLidProgram progra m, GLsizeiNotNegative bufsize, GLsizei* size, void* info); |
222 GL_APICALL void GL_APIENTRY glPlaceholder447CHROMIUM (void); | 222 GL_APICALL void GL_APIENTRY glPlaceholder447CHROMIUM (void); |
223 GL_APICALL void GL_APIENTRY glPlaceholder451CHROMIUM (void); | 223 GL_APICALL void GL_APIENTRY glPlaceholder451CHROMIUM (void); |
224 GL_APICALL void GL_APIENTRY glPlaceholder452CHROMIUM (void); | 224 GL_APICALL void GL_APIENTRY glPlaceholder452CHROMIUM (void); |
225 GL_APICALL void GL_APIENTRY glPlaceholder453CHROMIUM (void); | 225 GL_APICALL void GL_APIENTRY glPlaceholder453CHROMIUM (void); |
226 GL_APICALL void GL_APIENTRY glSetSurfaceVisibleCHROMIUM (GLboolean visib le); | |
apatrick_chromium
2011/09/28 17:33:45
Is there any reason why changing surface visibilit
mmocny
2011/09/28 21:37:33
I originally assumed we would not need the flush,
apatrick_chromium
2011/09/28 22:29:45
OpenGL does not guarantee that a GL command will b
mmocny
2011/10/07 14:26:13
GLES2CmdHelper::Flush seems to only add a glFlush
apatrick_chromium
2011/10/07 22:45:49
Yeah that's the one. Sorry about that.
| |
226 """ | 227 """ |
227 | 228 |
228 # This is the list of all commmands that will be generated and their Id. | 229 # 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. | 230 # 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 | 231 # This lets us make sure that command ids do not change as the generator |
231 # generates new variations of commands. | 232 # generates new variations of commands. |
232 | 233 |
233 _CMD_ID_TABLE = { | 234 _CMD_ID_TABLE = { |
234 'ActiveTexture': 256, | 235 'ActiveTexture': 256, |
235 'AttachShader': 257, | 236 'AttachShader': 257, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
424 'BlitFramebufferEXT': 446, | 425 'BlitFramebufferEXT': 446, |
425 'Placeholder447CHROMIUM': 447, | 426 'Placeholder447CHROMIUM': 447, |
426 'ResizeCHROMIUM': 448, | 427 'ResizeCHROMIUM': 448, |
427 'GetRequestableExtensionsCHROMIUM': 449, | 428 'GetRequestableExtensionsCHROMIUM': 449, |
428 'RequestExtensionCHROMIUM': 450, | 429 'RequestExtensionCHROMIUM': 450, |
429 'Placeholder451CHROMIUM': 451, | 430 'Placeholder451CHROMIUM': 451, |
430 'Placeholder452CHROMIUM': 452, | 431 'Placeholder452CHROMIUM': 452, |
431 'Placeholder453CHROMIUM': 453, | 432 'Placeholder453CHROMIUM': 453, |
432 'GetMultipleIntegervCHROMIUM': 454, | 433 'GetMultipleIntegervCHROMIUM': 454, |
433 'GetProgramInfoCHROMIUM': 455, | 434 'GetProgramInfoCHROMIUM': 455, |
435 'SetSurfaceVisibleCHROMIUM': 456, | |
434 } | 436 } |
435 | 437 |
436 # This is a list of enum names and their valid values. It is used to map | 438 # 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. | 439 # GLenum arguments to a specific set of valid values. |
438 _ENUM_LISTS = { | 440 _ENUM_LISTS = { |
439 'BlitFilter': { | 441 'BlitFilter': { |
440 'type': 'GLenum', | 442 'type': 'GLenum', |
441 'valid': [ | 443 'valid': [ |
442 'GL_NEAREST', | 444 'GL_NEAREST', |
443 'GL_LINEAR', | 445 'GL_LINEAR', |
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1761 'Placeholder452CHROMIUM': { | 1763 'Placeholder452CHROMIUM': { |
1762 'type': 'UnknownCommand', | 1764 'type': 'UnknownCommand', |
1763 'extension': True, | 1765 'extension': True, |
1764 'chromium': True, | 1766 'chromium': True, |
1765 }, | 1767 }, |
1766 'Placeholder453CHROMIUM': { | 1768 'Placeholder453CHROMIUM': { |
1767 'type': 'UnknownCommand', | 1769 'type': 'UnknownCommand', |
1768 'extension': True, | 1770 'extension': True, |
1769 'chromium': True, | 1771 'chromium': True, |
1770 }, | 1772 }, |
1773 'SetSurfaceVisibleCHROMIUM': { | |
1774 'type': 'Custom', | |
1775 'impl_func': False, | |
1776 'unit_test': False, | |
1777 'extension': True, | |
1778 'chromium': True, | |
1779 }, | |
1771 } | 1780 } |
1772 | 1781 |
1773 | 1782 |
1774 def SplitWords(input_string): | 1783 def SplitWords(input_string): |
1775 """Transforms a input_string into a list of lower-case components. | 1784 """Transforms a input_string into a list of lower-case components. |
1776 | 1785 |
1777 Args: | 1786 Args: |
1778 input_string: the input string. | 1787 input_string: the input string. |
1779 | 1788 |
1780 Returns: | 1789 Returns: |
(...skipping 4172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5953 | 5962 |
5954 if options.generate_docs: | 5963 if options.generate_docs: |
5955 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") | 5964 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") |
5956 | 5965 |
5957 if gen.errors > 0: | 5966 if gen.errors > 0: |
5958 print "%d errors" % gen.errors | 5967 print "%d errors" % gen.errors |
5959 sys.exit(1) | 5968 sys.exit(1) |
5960 | 5969 |
5961 if __name__ == '__main__': | 5970 if __name__ == '__main__': |
5962 main(sys.argv[1:]) | 5971 main(sys.argv[1:]) |
OLD | NEW |