| 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 2629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2640 'trace_level': 1, | 2640 'trace_level': 1, |
| 2641 }, | 2641 }, |
| 2642 'CompressedTexSubImage3D': { | 2642 'CompressedTexSubImage3D': { |
| 2643 'type': 'Data', | 2643 'type': 'Data', |
| 2644 'data_transfer_methods': ['bucket', 'shm'], | 2644 'data_transfer_methods': ['bucket', 'shm'], |
| 2645 'decoder_func': 'DoCompressedTexSubImage3D', | 2645 'decoder_func': 'DoCompressedTexSubImage3D', |
| 2646 'unsafe': True, | 2646 'unsafe': True, |
| 2647 'trace_level': 1, | 2647 'trace_level': 1, |
| 2648 }, | 2648 }, |
| 2649 'CopyTexSubImage3D': { | 2649 'CopyTexSubImage3D': { |
| 2650 'decoder_func': 'DoCopyTexSubImage3D', |
| 2651 'unit_test': False, |
| 2650 'defer_reads': True, | 2652 'defer_reads': True, |
| 2651 'unsafe': True, | 2653 'unsafe': True, |
| 2652 'trace_level': 1, | 2654 'trace_level': 1, |
| 2653 }, | 2655 }, |
| 2654 'CreateImageCHROMIUM': { | 2656 'CreateImageCHROMIUM': { |
| 2655 'type': 'Manual', | 2657 'type': 'Manual', |
| 2656 'cmd_args': | 2658 'cmd_args': |
| 2657 'ClientBuffer buffer, GLsizei width, GLsizei height, ' | 2659 'ClientBuffer buffer, GLsizei width, GLsizei height, ' |
| 2658 'GLenum internalformat', | 2660 'GLenum internalformat', |
| 2659 'result': ['GLuint'], | 2661 'result': ['GLuint'], |
| (...skipping 8889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11549 Format(gen.generated_cpp_filenames) | 11551 Format(gen.generated_cpp_filenames) |
| 11550 | 11552 |
| 11551 if gen.errors > 0: | 11553 if gen.errors > 0: |
| 11552 print "%d errors" % gen.errors | 11554 print "%d errors" % gen.errors |
| 11553 return 1 | 11555 return 1 |
| 11554 return 0 | 11556 return 0 |
| 11555 | 11557 |
| 11556 | 11558 |
| 11557 if __name__ == '__main__': | 11559 if __name__ == '__main__': |
| 11558 sys.exit(main(sys.argv[1:])) | 11560 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |