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 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 # This table specifies the different pepper interfaces that are supported for | 1213 # This table specifies the different pepper interfaces that are supported for |
1214 # GL commands. 'dev' is true if it's a dev interface. | 1214 # GL commands. 'dev' is true if it's a dev interface. |
1215 _PEPPER_INTERFACES = [ | 1215 _PEPPER_INTERFACES = [ |
1216 {'name': '', 'dev': False}, | 1216 {'name': '', 'dev': False}, |
1217 {'name': 'InstancedArrays', 'dev': False}, | 1217 {'name': 'InstancedArrays', 'dev': False}, |
1218 {'name': 'FramebufferBlit', 'dev': False}, | 1218 {'name': 'FramebufferBlit', 'dev': False}, |
1219 {'name': 'FramebufferMultisample', 'dev': False}, | 1219 {'name': 'FramebufferMultisample', 'dev': False}, |
1220 {'name': 'ChromiumEnableFeature', 'dev': False}, | 1220 {'name': 'ChromiumEnableFeature', 'dev': False}, |
1221 {'name': 'ChromiumMapSub', 'dev': False}, | 1221 {'name': 'ChromiumMapSub', 'dev': False}, |
1222 {'name': 'Query', 'dev': False}, | 1222 {'name': 'Query', 'dev': False}, |
| 1223 {'name': 'VertexArrayObject', 'dev': False}, |
1223 {'name': 'DrawBuffers', 'dev': True}, | 1224 {'name': 'DrawBuffers', 'dev': True}, |
1224 ] | 1225 ] |
1225 | 1226 |
1226 # A function info object specifies the type and other special data for the | 1227 # A function info object specifies the type and other special data for the |
1227 # command that will be generated. A base function info object is generated by | 1228 # command that will be generated. A base function info object is generated by |
1228 # parsing the "cmd_buffer_functions.txt", one for each function in the | 1229 # parsing the "cmd_buffer_functions.txt", one for each function in the |
1229 # file. These function info objects can be augmented and their values can be | 1230 # file. These function info objects can be augmented and their values can be |
1230 # overridden by adding an object to the table below. | 1231 # overridden by adding an object to the table below. |
1231 # | 1232 # |
1232 # Must match function names specified in "cmd_buffer_functions.txt". | 1233 # Must match function names specified in "cmd_buffer_functions.txt". |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2419 'impl_func': False, | 2420 'impl_func': False, |
2420 }, | 2421 }, |
2421 | 2422 |
2422 'GenVertexArraysOES': { | 2423 'GenVertexArraysOES': { |
2423 'type': 'GENn', | 2424 'type': 'GENn', |
2424 'extension': True, | 2425 'extension': True, |
2425 'gl_test_func': 'glGenVertexArraysOES', | 2426 'gl_test_func': 'glGenVertexArraysOES', |
2426 'resource_type': 'VertexArray', | 2427 'resource_type': 'VertexArray', |
2427 'resource_types': 'VertexArrays', | 2428 'resource_types': 'VertexArrays', |
2428 'unit_test': False, | 2429 'unit_test': False, |
| 2430 'pepper_interface': 'VertexArrayObject', |
2429 }, | 2431 }, |
2430 'BindVertexArrayOES': { | 2432 'BindVertexArrayOES': { |
2431 'type': 'Bind', | 2433 'type': 'Bind', |
2432 'extension': True, | 2434 'extension': True, |
2433 'gl_test_func': 'glBindVertexArrayOES', | 2435 'gl_test_func': 'glBindVertexArrayOES', |
2434 'decoder_func': 'DoBindVertexArrayOES', | 2436 'decoder_func': 'DoBindVertexArrayOES', |
2435 'gen_func': 'GenVertexArraysOES', | 2437 'gen_func': 'GenVertexArraysOES', |
2436 'unit_test': False, | 2438 'unit_test': False, |
2437 'client_test': False, | 2439 'client_test': False, |
| 2440 'pepper_interface': 'VertexArrayObject', |
2438 }, | 2441 }, |
2439 'DeleteVertexArraysOES': { | 2442 'DeleteVertexArraysOES': { |
2440 'type': 'DELn', | 2443 'type': 'DELn', |
2441 'extension': True, | 2444 'extension': True, |
2442 'gl_test_func': 'glDeleteVertexArraysOES', | 2445 'gl_test_func': 'glDeleteVertexArraysOES', |
2443 'resource_type': 'VertexArray', | 2446 'resource_type': 'VertexArray', |
2444 'resource_types': 'VertexArrays', | 2447 'resource_types': 'VertexArrays', |
2445 'unit_test': False, | 2448 'unit_test': False, |
| 2449 'pepper_interface': 'VertexArrayObject', |
2446 }, | 2450 }, |
2447 'IsVertexArrayOES': { | 2451 'IsVertexArrayOES': { |
2448 'type': 'Is', | 2452 'type': 'Is', |
2449 'extension': True, | 2453 'extension': True, |
2450 'gl_test_func': 'glIsVertexArrayOES', | 2454 'gl_test_func': 'glIsVertexArrayOES', |
2451 'decoder_func': 'DoIsVertexArrayOES', | 2455 'decoder_func': 'DoIsVertexArrayOES', |
2452 'expectation': False, | 2456 'expectation': False, |
2453 'unit_test': False, | 2457 'unit_test': False, |
| 2458 'pepper_interface': 'VertexArrayObject', |
2454 }, | 2459 }, |
2455 'BindTexImage2DCHROMIUM': { | 2460 'BindTexImage2DCHROMIUM': { |
2456 'decoder_func': 'DoBindTexImage2DCHROMIUM', | 2461 'decoder_func': 'DoBindTexImage2DCHROMIUM', |
2457 'unit_test': False, | 2462 'unit_test': False, |
2458 'extension': True, | 2463 'extension': True, |
2459 'chromium': True, | 2464 'chromium': True, |
2460 }, | 2465 }, |
2461 'ReleaseTexImage2DCHROMIUM': { | 2466 'ReleaseTexImage2DCHROMIUM': { |
2462 'decoder_func': 'DoReleaseTexImage2DCHROMIUM', | 2467 'decoder_func': 'DoReleaseTexImage2DCHROMIUM', |
2463 'unit_test': False, | 2468 'unit_test': False, |
(...skipping 5877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8341 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) | 8346 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) |
8342 | 8347 |
8343 if gen.errors > 0: | 8348 if gen.errors > 0: |
8344 print "%d errors" % gen.errors | 8349 print "%d errors" % gen.errors |
8345 return 1 | 8350 return 1 |
8346 return 0 | 8351 return 0 |
8347 | 8352 |
8348 | 8353 |
8349 if __name__ == '__main__': | 8354 if __name__ == '__main__': |
8350 sys.exit(main(sys.argv[1:])) | 8355 sys.exit(main(sys.argv[1:])) |
OLD | NEW |