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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 'GL_RGBA', | 1188 'GL_RGBA', |
1189 ], | 1189 ], |
1190 }, | 1190 }, |
1191 'ImageUsage': { | 1191 'ImageUsage': { |
1192 'type': 'GLenum', | 1192 'type': 'GLenum', |
1193 'valid': [ | 1193 'valid': [ |
1194 'GL_MAP_CHROMIUM', | 1194 'GL_MAP_CHROMIUM', |
1195 'GL_SCANOUT_CHROMIUM' | 1195 'GL_SCANOUT_CHROMIUM' |
1196 ], | 1196 ], |
1197 }, | 1197 }, |
1198 'ValueBufferTarget': { | |
1199 'type': 'GLenum', | |
1200 'valid': [ | |
1201 'GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM', | |
1202 ], | |
1203 }, | |
1204 'SubscriptionTarget': { | |
1205 'type': 'GLenum', | |
1206 'valid': [ | |
1207 'GL_MOUSE_POSITION_CHROMIUM', | |
1208 ], | |
1209 }, | |
1210 'VertexAttribType': { | 1198 'VertexAttribType': { |
1211 'type': 'GLenum', | 1199 'type': 'GLenum', |
1212 'valid': [ | 1200 'valid': [ |
1213 'GL_BYTE', | 1201 'GL_BYTE', |
1214 'GL_UNSIGNED_BYTE', | 1202 'GL_UNSIGNED_BYTE', |
1215 'GL_SHORT', | 1203 'GL_SHORT', |
1216 'GL_UNSIGNED_SHORT', | 1204 'GL_UNSIGNED_SHORT', |
1217 # 'GL_FIXED', // This is not available on Desktop GL. | 1205 # 'GL_FIXED', // This is not available on Desktop GL. |
1218 'GL_FLOAT', | 1206 'GL_FLOAT', |
1219 ], | 1207 ], |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 'CreateAndConsumeTextureCHROMIUM': { | 1441 'CreateAndConsumeTextureCHROMIUM': { |
1454 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', | 1442 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', |
1455 'impl_func': False, | 1443 'impl_func': False, |
1456 'type': 'HandWritten', | 1444 'type': 'HandWritten', |
1457 'data_transfer_methods': ['immediate'], | 1445 'data_transfer_methods': ['immediate'], |
1458 'unit_test': False, | 1446 'unit_test': False, |
1459 'client_test': False, | 1447 'client_test': False, |
1460 'extension': "CHROMIUM_texture_mailbox", | 1448 'extension': "CHROMIUM_texture_mailbox", |
1461 'chromium': True, | 1449 'chromium': True, |
1462 }, | 1450 }, |
1463 'GenValuebuffersCHROMIUM': { | |
1464 'type': 'GENn', | |
1465 'gl_test_func': 'glGenValuebuffersCHROMIUM', | |
1466 'resource_type': 'Valuebuffer', | |
1467 'resource_types': 'Valuebuffers', | |
1468 'unit_test': False, | |
1469 'extension': True, | |
1470 'chromium': True, | |
1471 }, | |
1472 'DeleteValuebuffersCHROMIUM': { | |
1473 'type': 'DELn', | |
1474 'gl_test_func': 'glDeleteValuebuffersCHROMIUM', | |
1475 'resource_type': 'Valuebuffer', | |
1476 'resource_types': 'Valuebuffers', | |
1477 'unit_test': False, | |
1478 'extension': True, | |
1479 'chromium': True, | |
1480 }, | |
1481 'IsValuebufferCHROMIUM': { | |
1482 'type': 'Is', | |
1483 'decoder_func': 'DoIsValuebufferCHROMIUM', | |
1484 'expectation': False, | |
1485 'extension': True, | |
1486 'chromium': True, | |
1487 }, | |
1488 'BindValuebufferCHROMIUM': { | |
1489 'type': 'Bind', | |
1490 'decoder_func': 'DoBindValueBufferCHROMIUM', | |
1491 'gen_func': 'GenValueBuffersCHROMIUM', | |
1492 'unit_test': False, | |
1493 'extension': True, | |
1494 'chromium': True, | |
1495 }, | |
1496 'SubscribeValueCHROMIUM': { | |
1497 'decoder_func': 'DoSubscribeValueCHROMIUM', | |
1498 'unit_test': False, | |
1499 'extension': True, | |
1500 'chromium': True, | |
1501 }, | |
1502 'PopulateSubscribedValuesCHROMIUM': { | |
1503 'decoder_func': 'DoPopulateSubscribedValuesCHROMIUM', | |
1504 'unit_test': False, | |
1505 'extension': True, | |
1506 'chromium': True, | |
1507 }, | |
1508 'UniformValuebufferCHROMIUM': { | |
1509 'decoder_func': 'DoUniformValueBufferCHROMIUM', | |
1510 'unit_test': False, | |
1511 'extension': True, | |
1512 'chromium': True, | |
1513 }, | |
1514 'ClearStencil': { | 1451 'ClearStencil': { |
1515 'type': 'StateSet', | 1452 'type': 'StateSet', |
1516 'state': 'ClearStencil', | 1453 'state': 'ClearStencil', |
1517 }, | 1454 }, |
1518 'EnableFeatureCHROMIUM': { | 1455 'EnableFeatureCHROMIUM': { |
1519 'type': 'Custom', | 1456 'type': 'Custom', |
1520 'data_transfer_methods': ['shm'], | 1457 'data_transfer_methods': ['shm'], |
1521 'decoder_func': 'DoEnableFeatureCHROMIUM', | 1458 'decoder_func': 'DoEnableFeatureCHROMIUM', |
1522 'expectation': False, | 1459 'expectation': False, |
1523 'cmd_args': 'GLuint bucket_id, GLint* result', | 1460 'cmd_args': 'GLuint bucket_id, GLint* result', |
(...skipping 7171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8695 Format(gen.generated_cpp_filenames) | 8632 Format(gen.generated_cpp_filenames) |
8696 | 8633 |
8697 if gen.errors > 0: | 8634 if gen.errors > 0: |
8698 print "%d errors" % gen.errors | 8635 print "%d errors" % gen.errors |
8699 return 1 | 8636 return 1 |
8700 return 0 | 8637 return 0 |
8701 | 8638 |
8702 | 8639 |
8703 if __name__ == '__main__': | 8640 if __name__ == '__main__': |
8704 sys.exit(main(sys.argv[1:])) | 8641 sys.exit(main(sys.argv[1:])) |
OLD | NEW |