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...) 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 }, |
1198 'VertexAttribType': { | 1210 'VertexAttribType': { |
1199 'type': 'GLenum', | 1211 'type': 'GLenum', |
1200 'valid': [ | 1212 'valid': [ |
1201 'GL_BYTE', | 1213 'GL_BYTE', |
1202 'GL_UNSIGNED_BYTE', | 1214 'GL_UNSIGNED_BYTE', |
1203 'GL_SHORT', | 1215 'GL_SHORT', |
1204 'GL_UNSIGNED_SHORT', | 1216 'GL_UNSIGNED_SHORT', |
1205 # 'GL_FIXED', // This is not available on Desktop GL. | 1217 # 'GL_FIXED', // This is not available on Desktop GL. |
1206 'GL_FLOAT', | 1218 'GL_FLOAT', |
1207 ], | 1219 ], |
(...skipping 233 matching lines...) Loading... |
1441 'CreateAndConsumeTextureCHROMIUM': { | 1453 'CreateAndConsumeTextureCHROMIUM': { |
1442 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', | 1454 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', |
1443 'impl_func': False, | 1455 'impl_func': False, |
1444 'type': 'HandWritten', | 1456 'type': 'HandWritten', |
1445 'data_transfer_methods': ['immediate'], | 1457 'data_transfer_methods': ['immediate'], |
1446 'unit_test': False, | 1458 'unit_test': False, |
1447 'client_test': False, | 1459 'client_test': False, |
1448 'extension': "CHROMIUM_texture_mailbox", | 1460 'extension': "CHROMIUM_texture_mailbox", |
1449 'chromium': True, | 1461 'chromium': True, |
1450 }, | 1462 }, |
| 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 }, |
1451 'ClearStencil': { | 1514 'ClearStencil': { |
1452 'type': 'StateSet', | 1515 'type': 'StateSet', |
1453 'state': 'ClearStencil', | 1516 'state': 'ClearStencil', |
1454 }, | 1517 }, |
1455 'EnableFeatureCHROMIUM': { | 1518 'EnableFeatureCHROMIUM': { |
1456 'type': 'Custom', | 1519 'type': 'Custom', |
1457 'data_transfer_methods': ['shm'], | 1520 'data_transfer_methods': ['shm'], |
1458 'decoder_func': 'DoEnableFeatureCHROMIUM', | 1521 'decoder_func': 'DoEnableFeatureCHROMIUM', |
1459 'expectation': False, | 1522 'expectation': False, |
1460 'cmd_args': 'GLuint bucket_id, GLint* result', | 1523 'cmd_args': 'GLuint bucket_id, GLint* result', |
(...skipping 339 matching lines...) Loading... |
1800 'GetMaxValueInBufferCHROMIUM': { | 1863 'GetMaxValueInBufferCHROMIUM': { |
1801 'type': 'Is', | 1864 'type': 'Is', |
1802 'decoder_func': 'DoGetMaxValueInBufferCHROMIUM', | 1865 'decoder_func': 'DoGetMaxValueInBufferCHROMIUM', |
1803 'result': ['GLuint'], | 1866 'result': ['GLuint'], |
1804 'unit_test': False, | 1867 'unit_test': False, |
1805 'client_test': False, | 1868 'client_test': False, |
1806 'extension': True, | 1869 'extension': True, |
1807 'chromium': True, | 1870 'chromium': True, |
1808 'impl_func': False, | 1871 'impl_func': False, |
1809 }, | 1872 }, |
1810 'GetMultipleIntegervCHROMIUM': { | |
1811 'type': 'Custom', | |
1812 'data_transfer_methods': ['shm'], | |
1813 'expectation': False, | |
1814 'extension': True, | |
1815 'chromium': True, | |
1816 'client_test': False, | |
1817 }, | |
1818 'GetProgramiv': { | 1873 'GetProgramiv': { |
1819 'type': 'GETn', | 1874 'type': 'GETn', |
1820 'decoder_func': 'DoGetProgramiv', | 1875 'decoder_func': 'DoGetProgramiv', |
1821 'result': ['SizedResult<GLint>'], | 1876 'result': ['SizedResult<GLint>'], |
1822 'expectation': False, | 1877 'expectation': False, |
1823 }, | 1878 }, |
1824 'GetProgramInfoCHROMIUM': { | 1879 'GetProgramInfoCHROMIUM': { |
1825 'type': 'Custom', | 1880 'type': 'Custom', |
1826 'expectation': False, | 1881 'expectation': False, |
1827 'impl_func': False, | 1882 'impl_func': False, |
(...skipping 6804 matching lines...) Loading... |
8632 Format(gen.generated_cpp_filenames) | 8687 Format(gen.generated_cpp_filenames) |
8633 | 8688 |
8634 if gen.errors > 0: | 8689 if gen.errors > 0: |
8635 print "%d errors" % gen.errors | 8690 print "%d errors" % gen.errors |
8636 return 1 | 8691 return 1 |
8637 return 0 | 8692 return 0 |
8638 | 8693 |
8639 | 8694 |
8640 if __name__ == '__main__': | 8695 if __name__ == '__main__': |
8641 sys.exit(main(sys.argv[1:])) | 8696 sys.exit(main(sys.argv[1:])) |
OLD | NEW |