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 2646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2657 'trace_level': 1, | 2657 'trace_level': 1, |
2658 }, | 2658 }, |
2659 'CreateGpuMemoryBufferImageCHROMIUM': { | 2659 'CreateGpuMemoryBufferImageCHROMIUM': { |
2660 'type': 'NoCommand', | 2660 'type': 'NoCommand', |
2661 'cmd_args': | 2661 'cmd_args': |
2662 'GLsizei width, GLsizei height, GLenum internalformat, GLenum usage', | 2662 'GLsizei width, GLsizei height, GLenum internalformat, GLenum usage', |
2663 'result': ['GLuint'], | 2663 'result': ['GLuint'], |
2664 'extension': "CHROMIUM_gpu_memory_buffer_image", | 2664 'extension': "CHROMIUM_gpu_memory_buffer_image", |
2665 'trace_level': 1, | 2665 'trace_level': 1, |
2666 }, | 2666 }, |
| 2667 'CreateFenceCHROMIUM': { |
| 2668 'type': 'NoCommand', |
| 2669 'cmd_args': 'ClientFence fence', |
| 2670 'result': ['GLuint'], |
| 2671 'extension': "CHROMIUM_fence", |
| 2672 'trace_level': 1, |
| 2673 }, |
| 2674 'DestroyFenceCHROMIUM': { |
| 2675 'type': 'NoCommand', |
| 2676 'extension': "CHROMIUM_fence", |
| 2677 'trace_level': 1, |
| 2678 }, |
2667 'DescheduleUntilFinishedCHROMIUM': { | 2679 'DescheduleUntilFinishedCHROMIUM': { |
2668 'type': 'Custom', | 2680 'type': 'Custom', |
2669 'decoder_func': 'DoDescheduleUntilFinishedCHROMIUM', | 2681 'decoder_func': 'DoDescheduleUntilFinishedCHROMIUM', |
2670 'extension': "CHROMIUM_deschedule", | 2682 'extension': "CHROMIUM_deschedule", |
2671 'trace_level': 1, | 2683 'trace_level': 1, |
2672 }, | 2684 }, |
2673 'CreateProgram': { | 2685 'CreateProgram': { |
2674 'type': 'Create', | 2686 'type': 'Create', |
2675 'client_test': False, | 2687 'client_test': False, |
2676 }, | 2688 }, |
(...skipping 8506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11183 Format(gen.generated_cpp_filenames) | 11195 Format(gen.generated_cpp_filenames) |
11184 | 11196 |
11185 if gen.errors > 0: | 11197 if gen.errors > 0: |
11186 print "%d errors" % gen.errors | 11198 print "%d errors" % gen.errors |
11187 return 1 | 11199 return 1 |
11188 return 0 | 11200 return 0 |
11189 | 11201 |
11190 | 11202 |
11191 if __name__ == '__main__': | 11203 if __name__ == '__main__': |
11192 sys.exit(main(sys.argv[1:])) | 11204 sys.exit(main(sys.argv[1:])) |
OLD | NEW |