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 os | 8 import os |
9 import os.path | 9 import os.path |
10 import sys | 10 import sys |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 'invalid': [ | 751 'invalid': [ |
752 'true', | 752 'true', |
753 ], | 753 ], |
754 }, | 754 }, |
755 } | 755 } |
756 | 756 |
757 # This table specifies the different pepper interfaces that are supported for | 757 # This table specifies the different pepper interfaces that are supported for |
758 # GL commands. 'dev' is true if it's a dev interface. | 758 # GL commands. 'dev' is true if it's a dev interface. |
759 _PEPPER_INTERFACES = [ | 759 _PEPPER_INTERFACES = [ |
760 {'name': '', 'dev': False}, | 760 {'name': '', 'dev': False}, |
761 {'name': 'InstancedArrays', 'dev': True}, | 761 {'name': 'InstancedArrays', 'dev': False}, |
762 {'name': 'FramebufferBlit', 'dev': True}, | 762 {'name': 'FramebufferBlit', 'dev': False}, |
763 {'name': 'FramebufferMultisample', 'dev': True}, | 763 {'name': 'FramebufferMultisample', 'dev': False}, |
764 {'name': 'ChromiumEnableFeature', 'dev': True}, | 764 {'name': 'ChromiumEnableFeature', 'dev': False}, |
765 {'name': 'ChromiumMapSub', 'dev': True}, | 765 {'name': 'ChromiumMapSub', 'dev': False}, |
766 {'name': 'Query', 'dev': True}, | 766 {'name': 'Query', 'dev': False}, |
767 ] | 767 ] |
768 | 768 |
769 # This table specifies types and other special data for the commands that | 769 # This table specifies types and other special data for the commands that |
770 # will be generated. | 770 # will be generated. |
771 # | 771 # |
772 # cmd_comment: A comment added to the cmd format. | 772 # cmd_comment: A comment added to the cmd format. |
773 # type: defines which handler will be used to generate code. | 773 # type: defines which handler will be used to generate code. |
774 # decoder_func: defines which function to call in the decoder to execute the | 774 # decoder_func: defines which function to call in the decoder to execute the |
775 # corresponding GL command. If not specified the GL command will | 775 # corresponding GL command. If not specified the GL command will |
776 # be called directly. | 776 # be called directly. |
(...skipping 5469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6246 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 6246 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
6247 | 6247 |
6248 if gen.errors > 0: | 6248 if gen.errors > 0: |
6249 print "%d errors" % gen.errors | 6249 print "%d errors" % gen.errors |
6250 return 1 | 6250 return 1 |
6251 return 0 | 6251 return 0 |
6252 | 6252 |
6253 | 6253 |
6254 if __name__ == '__main__': | 6254 if __name__ == '__main__': |
6255 sys.exit(main(sys.argv[1:])) | 6255 sys.exit(main(sys.argv[1:])) |
OLD | NEW |