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 2668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2679 'impl_func': False, | 2679 'impl_func': False, |
2680 'gen_cmd': False, | 2680 'gen_cmd': False, |
2681 'extension': True, | 2681 'extension': True, |
2682 'chromium': True, | 2682 'chromium': True, |
2683 'client_test': False, | 2683 'client_test': False, |
2684 }, | 2684 }, |
2685 'TraceBeginCHROMIUM': { | 2685 'TraceBeginCHROMIUM': { |
2686 'type': 'Custom', | 2686 'type': 'Custom', |
2687 'impl_func': False, | 2687 'impl_func': False, |
2688 'client_test': False, | 2688 'client_test': False, |
2689 'cmd_args': 'GLuint bucket_id', | 2689 'cmd_args': 'GLuint category_bucket_id, GLuint name_bucket_id', |
2690 'extension': True, | 2690 'extension': True, |
2691 'chromium': True, | 2691 'chromium': True, |
2692 }, | 2692 }, |
2693 'TraceEndCHROMIUM': { | 2693 'TraceEndCHROMIUM': { |
2694 'impl_func': False, | 2694 'impl_func': False, |
2695 'client_test': False, | 2695 'client_test': False, |
2696 'decoder_func': 'DoTraceEndCHROMIUM', | 2696 'decoder_func': 'DoTraceEndCHROMIUM', |
2697 'unit_test': False, | 2697 'unit_test': False, |
2698 'extension': True, | 2698 'extension': True, |
2699 'chromium': True, | 2699 'chromium': True, |
(...skipping 6176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8876 Format(gen.generated_cpp_filenames) | 8876 Format(gen.generated_cpp_filenames) |
8877 | 8877 |
8878 if gen.errors > 0: | 8878 if gen.errors > 0: |
8879 print "%d errors" % gen.errors | 8879 print "%d errors" % gen.errors |
8880 return 1 | 8880 return 1 |
8881 return 0 | 8881 return 0 |
8882 | 8882 |
8883 | 8883 |
8884 if __name__ == '__main__': | 8884 if __name__ == '__main__': |
8885 sys.exit(main(sys.argv[1:])) | 8885 sys.exit(main(sys.argv[1:])) |
OLD | NEW |