| 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 os | 8 import os |
| 9 import os.path | 9 import os.path |
| 10 import sys | 10 import sys |
| (...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 'GL_UNSIGNED_BYTE', | 622 'GL_UNSIGNED_BYTE', |
| 623 'GL_UNSIGNED_SHORT_5_6_5', | 623 'GL_UNSIGNED_SHORT_5_6_5', |
| 624 'GL_UNSIGNED_SHORT_4_4_4_4', | 624 'GL_UNSIGNED_SHORT_4_4_4_4', |
| 625 'GL_UNSIGNED_SHORT_5_5_5_1', | 625 'GL_UNSIGNED_SHORT_5_5_5_1', |
| 626 ], | 626 ], |
| 627 'invalid': [ | 627 'invalid': [ |
| 628 'GL_SHORT', | 628 'GL_SHORT', |
| 629 'GL_INT', | 629 'GL_INT', |
| 630 ], | 630 ], |
| 631 }, | 631 }, |
| 632 'ReadPixelType': { |
| 633 'type': 'GLenum', |
| 634 'valid': [ |
| 635 'GL_UNSIGNED_BYTE', |
| 636 'GL_UNSIGNED_SHORT_5_6_5', |
| 637 'GL_UNSIGNED_SHORT_4_4_4_4', |
| 638 'GL_UNSIGNED_SHORT_5_5_5_1', |
| 639 ], |
| 640 'invalid': [ |
| 641 'GL_SHORT', |
| 642 'GL_INT', |
| 643 ], |
| 644 }, |
| 632 'RenderBufferFormat': { | 645 'RenderBufferFormat': { |
| 633 'type': 'GLenum', | 646 'type': 'GLenum', |
| 634 'valid': [ | 647 'valid': [ |
| 635 'GL_RGBA4', | 648 'GL_RGBA4', |
| 636 'GL_RGB565', | 649 'GL_RGB565', |
| 637 'GL_RGB5_A1', | 650 'GL_RGB5_A1', |
| 638 'GL_DEPTH_COMPONENT16', | 651 'GL_DEPTH_COMPONENT16', |
| 639 'GL_STENCIL_INDEX8', | 652 'GL_STENCIL_INDEX8', |
| 640 ], | 653 ], |
| 641 }, | 654 }, |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 'cmd_comment': | 1341 'cmd_comment': |
| 1329 '// ReadPixels has the result separated from the pixel buffer so that\n' | 1342 '// ReadPixels has the result separated from the pixel buffer so that\n' |
| 1330 '// it is easier to specify the result going to some specific place\n' | 1343 '// it is easier to specify the result going to some specific place\n' |
| 1331 '// that exactly fits the rectangle of pixels.\n', | 1344 '// that exactly fits the rectangle of pixels.\n', |
| 1332 'type': 'Custom', | 1345 'type': 'Custom', |
| 1333 'immediate': False, | 1346 'immediate': False, |
| 1334 'impl_func': False, | 1347 'impl_func': False, |
| 1335 'client_test': False, | 1348 'client_test': False, |
| 1336 'cmd_args': | 1349 'cmd_args': |
| 1337 'GLint x, GLint y, GLsizei width, GLsizei height, ' | 1350 'GLint x, GLint y, GLsizei width, GLsizei height, ' |
| 1338 'GLenumReadPixelFormat format, GLenumPixelType type, ' | 1351 'GLenumReadPixelFormat format, GLenumReadPixelType type, ' |
| 1339 'uint32 pixels_shm_id, uint32 pixels_shm_offset, ' | 1352 'uint32 pixels_shm_id, uint32 pixels_shm_offset, ' |
| 1340 'uint32 result_shm_id, uint32 result_shm_offset', | 1353 'uint32 result_shm_id, uint32 result_shm_offset', |
| 1341 'result': ['uint32'], | 1354 'result': ['uint32'], |
| 1342 }, | 1355 }, |
| 1343 'RegisterSharedIdsCHROMIUM': { | 1356 'RegisterSharedIdsCHROMIUM': { |
| 1344 'type': 'Custom', | 1357 'type': 'Custom', |
| 1345 'decoder_func': 'DoRegisterSharedIdsCHROMIUM', | 1358 'decoder_func': 'DoRegisterSharedIdsCHROMIUM', |
| 1346 'impl_func': False, | 1359 'impl_func': False, |
| 1347 'expectation': False, | 1360 'expectation': False, |
| 1348 'immediate': False, | 1361 'immediate': False, |
| (...skipping 4903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6252 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 6265 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
| 6253 | 6266 |
| 6254 if gen.errors > 0: | 6267 if gen.errors > 0: |
| 6255 print "%d errors" % gen.errors | 6268 print "%d errors" % gen.errors |
| 6256 return 1 | 6269 return 1 |
| 6257 return 0 | 6270 return 0 |
| 6258 | 6271 |
| 6259 | 6272 |
| 6260 if __name__ == '__main__': | 6273 if __name__ == '__main__': |
| 6261 sys.exit(main(sys.argv[1:])) | 6274 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |