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': 'VertexArray', 'dev': False}, | |
piman
2014/07/16 23:32:40
nit: mind calling it VertexArrayObject (which is c
Zachary Kuznia
2014/07/17 04:41:27
Done.
| |
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 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2421 'impl_func': False, | 2422 'impl_func': False, |
2422 }, | 2423 }, |
2423 | 2424 |
2424 'GenVertexArraysOES': { | 2425 'GenVertexArraysOES': { |
2425 'type': 'GENn', | 2426 'type': 'GENn', |
2426 'extension': True, | 2427 'extension': True, |
2427 'gl_test_func': 'glGenVertexArraysOES', | 2428 'gl_test_func': 'glGenVertexArraysOES', |
2428 'resource_type': 'VertexArray', | 2429 'resource_type': 'VertexArray', |
2429 'resource_types': 'VertexArrays', | 2430 'resource_types': 'VertexArrays', |
2430 'unit_test': False, | 2431 'unit_test': False, |
2432 'pepper_interface': 'VertexArray', | |
2431 }, | 2433 }, |
2432 'BindVertexArrayOES': { | 2434 'BindVertexArrayOES': { |
2433 'type': 'Bind', | 2435 'type': 'Bind', |
2434 'extension': True, | 2436 'extension': True, |
2435 'gl_test_func': 'glBindVertexArrayOES', | 2437 'gl_test_func': 'glBindVertexArrayOES', |
2436 'decoder_func': 'DoBindVertexArrayOES', | 2438 'decoder_func': 'DoBindVertexArrayOES', |
2437 'gen_func': 'GenVertexArraysOES', | 2439 'gen_func': 'GenVertexArraysOES', |
2438 'unit_test': False, | 2440 'unit_test': False, |
2439 'client_test': False, | 2441 'client_test': False, |
2442 'pepper_interface': 'VertexArray', | |
2440 }, | 2443 }, |
2441 'DeleteVertexArraysOES': { | 2444 'DeleteVertexArraysOES': { |
2442 'type': 'DELn', | 2445 'type': 'DELn', |
2443 'extension': True, | 2446 'extension': True, |
2444 'gl_test_func': 'glDeleteVertexArraysOES', | 2447 'gl_test_func': 'glDeleteVertexArraysOES', |
2445 'resource_type': 'VertexArray', | 2448 'resource_type': 'VertexArray', |
2446 'resource_types': 'VertexArrays', | 2449 'resource_types': 'VertexArrays', |
2447 'unit_test': False, | 2450 'unit_test': False, |
2451 'pepper_interface': 'VertexArray', | |
2448 }, | 2452 }, |
2449 'IsVertexArrayOES': { | 2453 'IsVertexArrayOES': { |
2450 'type': 'Is', | 2454 'type': 'Is', |
2451 'extension': True, | 2455 'extension': True, |
2452 'gl_test_func': 'glIsVertexArrayOES', | 2456 'gl_test_func': 'glIsVertexArrayOES', |
2453 'decoder_func': 'DoIsVertexArrayOES', | 2457 'decoder_func': 'DoIsVertexArrayOES', |
2454 'expectation': False, | 2458 'expectation': False, |
2455 'unit_test': False, | 2459 'unit_test': False, |
2460 'pepper_interface': 'VertexArray', | |
2456 }, | 2461 }, |
2457 'BindTexImage2DCHROMIUM': { | 2462 'BindTexImage2DCHROMIUM': { |
2458 'decoder_func': 'DoBindTexImage2DCHROMIUM', | 2463 'decoder_func': 'DoBindTexImage2DCHROMIUM', |
2459 'unit_test': False, | 2464 'unit_test': False, |
2460 'extension': True, | 2465 'extension': True, |
2461 'chromium': True, | 2466 'chromium': True, |
2462 }, | 2467 }, |
2463 'ReleaseTexImage2DCHROMIUM': { | 2468 'ReleaseTexImage2DCHROMIUM': { |
2464 'decoder_func': 'DoReleaseTexImage2DCHROMIUM', | 2469 'decoder_func': 'DoReleaseTexImage2DCHROMIUM', |
2465 'unit_test': False, | 2470 'unit_test': False, |
(...skipping 5897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8363 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) | 8368 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) |
8364 | 8369 |
8365 if gen.errors > 0: | 8370 if gen.errors > 0: |
8366 print "%d errors" % gen.errors | 8371 print "%d errors" % gen.errors |
8367 return 1 | 8372 return 1 |
8368 return 0 | 8373 return 0 |
8369 | 8374 |
8370 | 8375 |
8371 if __name__ == '__main__': | 8376 if __name__ == '__main__': |
8372 sys.exit(main(sys.argv[1:])) | 8377 sys.exit(main(sys.argv[1:])) |
OLD | NEW |