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 3282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3293 'type': 'StateSet', | 3293 'type': 'StateSet', |
3294 'state': 'Scissor', | 3294 'state': 'Scissor', |
3295 }, | 3295 }, |
3296 'Viewport': { | 3296 'Viewport': { |
3297 'decoder_func': 'DoViewport', | 3297 'decoder_func': 'DoViewport', |
3298 }, | 3298 }, |
3299 'ResizeCHROMIUM': { | 3299 'ResizeCHROMIUM': { |
3300 'type': 'Custom', | 3300 'type': 'Custom', |
3301 'impl_func': False, | 3301 'impl_func': False, |
3302 'unit_test': False, | 3302 'unit_test': False, |
3303 'extension': True, | 3303 'extension': 'CHROMIUM_resize', |
3304 'chromium': True, | 3304 'chromium': True, |
3305 }, | 3305 }, |
3306 'GetRequestableExtensionsCHROMIUM': { | 3306 'GetRequestableExtensionsCHROMIUM': { |
3307 'type': 'Custom', | 3307 'type': 'Custom', |
3308 'impl_func': False, | 3308 'impl_func': False, |
3309 'cmd_args': 'uint32_t bucket_id', | 3309 'cmd_args': 'uint32_t bucket_id', |
3310 'extension': True, | 3310 'extension': True, |
3311 'chromium': True, | 3311 'chromium': True, |
3312 }, | 3312 }, |
3313 'RequestExtensionCHROMIUM': { | 3313 'RequestExtensionCHROMIUM': { |
(...skipping 7326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10640 gen.WriteMojoGLCallVisitorForExtension( | 10640 gen.WriteMojoGLCallVisitorForExtension( |
10641 mojo_gles2_prefix + "_chromium_sync_point_autogen.h", | 10641 mojo_gles2_prefix + "_chromium_sync_point_autogen.h", |
10642 "CHROMIUM_sync_point") | 10642 "CHROMIUM_sync_point") |
10643 gen.WriteMojoGLCallVisitorForExtension( | 10643 gen.WriteMojoGLCallVisitorForExtension( |
10644 mojo_gles2_prefix + "_chromium_sub_image_autogen.h", | 10644 mojo_gles2_prefix + "_chromium_sub_image_autogen.h", |
10645 "CHROMIUM_sub_image") | 10645 "CHROMIUM_sub_image") |
10646 gen.WriteMojoGLCallVisitorForExtension( | 10646 gen.WriteMojoGLCallVisitorForExtension( |
10647 mojo_gles2_prefix + "_chromium_miscellaneous_autogen.h", | 10647 mojo_gles2_prefix + "_chromium_miscellaneous_autogen.h", |
10648 "CHROMIUM_miscellaneous") | 10648 "CHROMIUM_miscellaneous") |
10649 gen.WriteMojoGLCallVisitorForExtension( | 10649 gen.WriteMojoGLCallVisitorForExtension( |
| 10650 mojo_gles2_prefix + "_chromium_resize_autogen.h", |
| 10651 "CHROMIUM_resize") |
| 10652 gen.WriteMojoGLCallVisitorForExtension( |
10650 mojo_gles2_prefix + "_occlusion_query_ext_autogen.h", | 10653 mojo_gles2_prefix + "_occlusion_query_ext_autogen.h", |
10651 "occlusion_query_EXT") | 10654 "occlusion_query_EXT") |
10652 | 10655 |
10653 Format(gen.generated_cpp_filenames) | 10656 Format(gen.generated_cpp_filenames) |
10654 | 10657 |
10655 if gen.errors > 0: | 10658 if gen.errors > 0: |
10656 print "%d errors" % gen.errors | 10659 print "%d errors" % gen.errors |
10657 return 1 | 10660 return 1 |
10658 return 0 | 10661 return 0 |
10659 | 10662 |
10660 | 10663 |
10661 if __name__ == '__main__': | 10664 if __name__ == '__main__': |
10662 sys.exit(main(sys.argv[1:])) | 10665 sys.exit(main(sys.argv[1:])) |
OLD | NEW |