Chromium Code Reviews| 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 'UniformSubscriptionTarget': { | |
| 1199 'type': 'GLenum', | |
| 1200 'valid': [ | |
| 1201 'GL_MOUSE_POSITION_CHROMIUM', | |
| 1202 ], | |
| 1203 }, | |
| 1198 'VertexAttribType': { | 1204 'VertexAttribType': { |
| 1199 'type': 'GLenum', | 1205 'type': 'GLenum', |
| 1200 'valid': [ | 1206 'valid': [ |
| 1201 'GL_BYTE', | 1207 'GL_BYTE', |
| 1202 'GL_UNSIGNED_BYTE', | 1208 'GL_UNSIGNED_BYTE', |
| 1203 'GL_SHORT', | 1209 'GL_SHORT', |
| 1204 'GL_UNSIGNED_SHORT', | 1210 'GL_UNSIGNED_SHORT', |
| 1205 # 'GL_FIXED', // This is not available on Desktop GL. | 1211 # 'GL_FIXED', // This is not available on Desktop GL. |
| 1206 'GL_FLOAT', | 1212 'GL_FLOAT', |
| 1207 ], | 1213 ], |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1441 'CreateAndConsumeTextureCHROMIUM': { | 1447 'CreateAndConsumeTextureCHROMIUM': { |
| 1442 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', | 1448 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', |
| 1443 'impl_func': False, | 1449 'impl_func': False, |
| 1444 'type': 'HandWritten', | 1450 'type': 'HandWritten', |
| 1445 'data_transfer_methods': ['immediate'], | 1451 'data_transfer_methods': ['immediate'], |
| 1446 'unit_test': False, | 1452 'unit_test': False, |
| 1447 'client_test': False, | 1453 'client_test': False, |
| 1448 'extension': "CHROMIUM_texture_mailbox", | 1454 'extension': "CHROMIUM_texture_mailbox", |
| 1449 'chromium': True, | 1455 'chromium': True, |
| 1450 }, | 1456 }, |
| 1457 'SubscribeUniformCHROMIUM': { | |
| 1458 'decoder_func': 'DoSubscribeUniformCHROMIUM', | |
| 1459 'unit_test': False, | |
| 1460 'extension': True, | |
| 1461 'chromium': True, | |
| 1462 }, | |
| 1463 'UnsubscribeUniformCHROMIUM': { | |
| 1464 'decoder_func': 'DoUnsubscribeUniformCHROMIUM', | |
| 1465 'unit_test': False, | |
| 1466 'extension': True, | |
| 1467 'chromium': True, | |
| 1468 }, | |
| 1469 'PopulateSubscribedUniformsCHROMIUM': { | |
| 1470 'decoder_func': 'DoPopulateSubscribedUniformsCHROMIUM', | |
| 1471 'impl_func': False, | |
|
piman
2014/10/23 02:30:48
nit: why not?
| |
| 1472 'unit_test': False, | |
| 1473 'client_test': False, | |
| 1474 'extension': True, | |
| 1475 'chromium': True, | |
| 1476 }, | |
| 1451 'ClearStencil': { | 1477 'ClearStencil': { |
| 1452 'type': 'StateSet', | 1478 'type': 'StateSet', |
| 1453 'state': 'ClearStencil', | 1479 'state': 'ClearStencil', |
| 1454 }, | 1480 }, |
| 1455 'EnableFeatureCHROMIUM': { | 1481 'EnableFeatureCHROMIUM': { |
| 1456 'type': 'Custom', | 1482 'type': 'Custom', |
| 1457 'data_transfer_methods': ['shm'], | 1483 'data_transfer_methods': ['shm'], |
| 1458 'decoder_func': 'DoEnableFeatureCHROMIUM', | 1484 'decoder_func': 'DoEnableFeatureCHROMIUM', |
| 1459 'expectation': False, | 1485 'expectation': False, |
| 1460 'cmd_args': 'GLuint bucket_id, GLint* result', | 1486 'cmd_args': 'GLuint bucket_id, GLint* result', |
| (...skipping 7165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8626 Format(gen.generated_cpp_filenames) | 8652 Format(gen.generated_cpp_filenames) |
| 8627 | 8653 |
| 8628 if gen.errors > 0: | 8654 if gen.errors > 0: |
| 8629 print "%d errors" % gen.errors | 8655 print "%d errors" % gen.errors |
| 8630 return 1 | 8656 return 1 |
| 8631 return 0 | 8657 return 0 |
| 8632 | 8658 |
| 8633 | 8659 |
| 8634 if __name__ == '__main__': | 8660 if __name__ == '__main__': |
| 8635 sys.exit(main(sys.argv[1:])) | 8661 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |