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 2685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2696 'impl_func': False, | 2696 'impl_func': False, |
2697 'gen_cmd': False, | 2697 'gen_cmd': False, |
2698 'extension': True, | 2698 'extension': True, |
2699 'chromium': True, | 2699 'chromium': True, |
2700 'client_test': False, | 2700 'client_test': False, |
2701 }, | 2701 }, |
2702 'TraceBeginCHROMIUM': { | 2702 'TraceBeginCHROMIUM': { |
2703 'type': 'Custom', | 2703 'type': 'Custom', |
2704 'impl_func': False, | 2704 'impl_func': False, |
2705 'client_test': False, | 2705 'client_test': False, |
2706 'cmd_args': 'GLuint bucket_id', | 2706 'cmd_args': 'GLuint category_bucket_id, GLuint name_bucket_id', |
2707 'extension': True, | 2707 'extension': True, |
2708 'chromium': True, | 2708 'chromium': True, |
2709 }, | 2709 }, |
2710 'TraceEndCHROMIUM': { | 2710 'TraceEndCHROMIUM': { |
2711 'impl_func': False, | 2711 'impl_func': False, |
2712 'client_test': False, | 2712 'client_test': False, |
2713 'decoder_func': 'DoTraceEndCHROMIUM', | 2713 'decoder_func': 'DoTraceEndCHROMIUM', |
2714 'unit_test': False, | 2714 'unit_test': False, |
2715 'extension': True, | 2715 'extension': True, |
2716 'chromium': True, | 2716 'chromium': True, |
(...skipping 6191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8908 Format(gen.generated_cpp_filenames) | 8908 Format(gen.generated_cpp_filenames) |
8909 | 8909 |
8910 if gen.errors > 0: | 8910 if gen.errors > 0: |
8911 print "%d errors" % gen.errors | 8911 print "%d errors" % gen.errors |
8912 return 1 | 8912 return 1 |
8913 return 0 | 8913 return 0 |
8914 | 8914 |
8915 | 8915 |
8916 if __name__ == '__main__': | 8916 if __name__ == '__main__': |
8917 sys.exit(main(sys.argv[1:])) | 8917 sys.exit(main(sys.argv[1:])) |
OLD | NEW |