| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """code generator for GLES2 command buffers.""" | 6 """code generator for GLES2 command buffers.""" |
| 7 | 7 |
| 8 import itertools | 8 import itertools |
| 9 import os | 9 import os |
| 10 import os.path | 10 import os.path |
| (...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 # This table specifies the different pepper interfaces that are supported for | 1172 # This table specifies the different pepper interfaces that are supported for |
| 1173 # GL commands. 'dev' is true if it's a dev interface. | 1173 # GL commands. 'dev' is true if it's a dev interface. |
| 1174 _PEPPER_INTERFACES = [ | 1174 _PEPPER_INTERFACES = [ |
| 1175 {'name': '', 'dev': False}, | 1175 {'name': '', 'dev': False}, |
| 1176 {'name': 'InstancedArrays', 'dev': False}, | 1176 {'name': 'InstancedArrays', 'dev': False}, |
| 1177 {'name': 'FramebufferBlit', 'dev': False}, | 1177 {'name': 'FramebufferBlit', 'dev': False}, |
| 1178 {'name': 'FramebufferMultisample', 'dev': False}, | 1178 {'name': 'FramebufferMultisample', 'dev': False}, |
| 1179 {'name': 'ChromiumEnableFeature', 'dev': False}, | 1179 {'name': 'ChromiumEnableFeature', 'dev': False}, |
| 1180 {'name': 'ChromiumMapSub', 'dev': False}, | 1180 {'name': 'ChromiumMapSub', 'dev': False}, |
| 1181 {'name': 'Query', 'dev': False}, | 1181 {'name': 'Query', 'dev': False}, |
| 1182 {'name': 'DrawBuffers', 'dev': True}, |
| 1182 ] | 1183 ] |
| 1183 | 1184 |
| 1184 # This table specifies types and other special data for the commands that | 1185 # This table specifies types and other special data for the commands that |
| 1185 # will be generated. | 1186 # will be generated. |
| 1186 # | 1187 # |
| 1187 # Must match function names specified in "cmd_buffer_functions.txt". | 1188 # Must match function names specified in "cmd_buffer_functions.txt". |
| 1188 # | 1189 # |
| 1189 # cmd_comment: A comment added to the cmd format. | 1190 # cmd_comment: A comment added to the cmd format. |
| 1190 # type: defines which handler will be used to generate code. | 1191 # type: defines which handler will be used to generate code. |
| 1191 # decoder_func: defines which function to call in the decoder to execute the | 1192 # decoder_func: defines which function to call in the decoder to execute the |
| (...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2271 'defer_draws': True, | 2272 'defer_draws': True, |
| 2272 }, | 2273 }, |
| 2273 'DrawBuffersEXT': { | 2274 'DrawBuffersEXT': { |
| 2274 'type': 'PUTn', | 2275 'type': 'PUTn', |
| 2275 'decoder_func': 'DoDrawBuffersEXT', | 2276 'decoder_func': 'DoDrawBuffersEXT', |
| 2276 'data_type': 'GLenum', | 2277 'data_type': 'GLenum', |
| 2277 'count': 1, | 2278 'count': 1, |
| 2278 'client_test': False, | 2279 'client_test': False, |
| 2279 'unit_test': False, | 2280 'unit_test': False, |
| 2280 'extension': True, | 2281 'extension': True, |
| 2282 'pepper_interface': 'DrawBuffers', |
| 2281 }, | 2283 }, |
| 2282 'DrawElementsInstancedANGLE': { | 2284 'DrawElementsInstancedANGLE': { |
| 2283 'type': 'Manual', | 2285 'type': 'Manual', |
| 2284 'cmd_args': 'GLenumDrawMode mode, GLsizei count, ' | 2286 'cmd_args': 'GLenumDrawMode mode, GLsizei count, ' |
| 2285 'GLenumIndexType type, GLuint index_offset, GLsizei primcount', | 2287 'GLenumIndexType type, GLuint index_offset, GLsizei primcount', |
| 2286 'extension': True, | 2288 'extension': True, |
| 2287 'unit_test': False, | 2289 'unit_test': False, |
| 2288 'client_test': False, | 2290 'client_test': False, |
| 2289 'pepper_interface': 'InstancedArrays', | 2291 'pepper_interface': 'InstancedArrays', |
| 2290 'defer_draws': True, | 2292 'defer_draws': True, |
| (...skipping 5607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7898 "../../mojo/public/gles2/gles2_call_visitor_autogen.h") | 7900 "../../mojo/public/gles2/gles2_call_visitor_autogen.h") |
| 7899 | 7901 |
| 7900 if gen.errors > 0: | 7902 if gen.errors > 0: |
| 7901 print "%d errors" % gen.errors | 7903 print "%d errors" % gen.errors |
| 7902 return 1 | 7904 return 1 |
| 7903 return 0 | 7905 return 0 |
| 7904 | 7906 |
| 7905 | 7907 |
| 7906 if __name__ == '__main__': | 7908 if __name__ == '__main__': |
| 7907 sys.exit(main(sys.argv[1:])) | 7909 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |