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 2914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2925 'gl_test_func': 'glGenerateMipmapEXT', | 2925 'gl_test_func': 'glGenerateMipmapEXT', |
2926 'trace_level': 1, | 2926 'trace_level': 1, |
2927 }, | 2927 }, |
2928 'GenBuffers': { | 2928 'GenBuffers': { |
2929 'type': 'GENn', | 2929 'type': 'GENn', |
2930 'gl_test_func': 'glGenBuffersARB', | 2930 'gl_test_func': 'glGenBuffersARB', |
2931 'resource_type': 'Buffer', | 2931 'resource_type': 'Buffer', |
2932 'resource_types': 'Buffers', | 2932 'resource_types': 'Buffers', |
2933 }, | 2933 }, |
2934 'GenMailboxCHROMIUM': { | 2934 'GenMailboxCHROMIUM': { |
2935 'type': 'HandWritten', | 2935 'type': 'Manual', |
| 2936 'gen_cmd': 'False', |
2936 'impl_func': False, | 2937 'impl_func': False, |
2937 'extension': "CHROMIUM_texture_mailbox", | 2938 'extension': "CHROMIUM_texture_mailbox", |
2938 'chromium': True, | 2939 'chromium': True, |
2939 }, | 2940 }, |
2940 'GenFramebuffers': { | 2941 'GenFramebuffers': { |
2941 'type': 'GENn', | 2942 'type': 'GENn', |
2942 'gl_test_func': 'glGenFramebuffersEXT', | 2943 'gl_test_func': 'glGenFramebuffersEXT', |
2943 'resource_type': 'Framebuffer', | 2944 'resource_type': 'Framebuffer', |
2944 'resource_types': 'Framebuffers', | 2945 'resource_types': 'Framebuffers', |
2945 }, | 2946 }, |
(...skipping 8620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11566 Format(gen.generated_cpp_filenames) | 11567 Format(gen.generated_cpp_filenames) |
11567 | 11568 |
11568 if gen.errors > 0: | 11569 if gen.errors > 0: |
11569 print "%d errors" % gen.errors | 11570 print "%d errors" % gen.errors |
11570 return 1 | 11571 return 1 |
11571 return 0 | 11572 return 0 |
11572 | 11573 |
11573 | 11574 |
11574 if __name__ == '__main__': | 11575 if __name__ == '__main__': |
11575 sys.exit(main(sys.argv[1:])) | 11576 sys.exit(main(sys.argv[1:])) |
OLD | NEW |