| 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 {'name': 'FramebufferBlit', 'dev': False}, | 774 {'name': 'FramebufferBlit', 'dev': False}, |
| 775 {'name': 'FramebufferMultisample', 'dev': False}, | 775 {'name': 'FramebufferMultisample', 'dev': False}, |
| 776 {'name': 'ChromiumEnableFeature', 'dev': False}, | 776 {'name': 'ChromiumEnableFeature', 'dev': False}, |
| 777 {'name': 'ChromiumMapSub', 'dev': False}, | 777 {'name': 'ChromiumMapSub', 'dev': False}, |
| 778 {'name': 'Query', 'dev': False}, | 778 {'name': 'Query', 'dev': False}, |
| 779 ] | 779 ] |
| 780 | 780 |
| 781 # This table specifies types and other special data for the commands that | 781 # This table specifies types and other special data for the commands that |
| 782 # will be generated. | 782 # will be generated. |
| 783 # | 783 # |
| 784 # Must match function names specified in "cmd_buffer_functions.txt". |
| 785 # |
| 784 # cmd_comment: A comment added to the cmd format. | 786 # cmd_comment: A comment added to the cmd format. |
| 785 # type: defines which handler will be used to generate code. | 787 # type: defines which handler will be used to generate code. |
| 786 # decoder_func: defines which function to call in the decoder to execute the | 788 # decoder_func: defines which function to call in the decoder to execute the |
| 787 # corresponding GL command. If not specified the GL command will | 789 # corresponding GL command. If not specified the GL command will |
| 788 # be called directly. | 790 # be called directly. |
| 789 # gl_test_func: GL function that is expected to be called when testing. | 791 # gl_test_func: GL function that is expected to be called when testing. |
| 790 # cmd_args: The arguments to use for the command. This overrides generating | 792 # cmd_args: The arguments to use for the command. This overrides generating |
| 791 # them based on the GL function arguments. | 793 # them based on the GL function arguments. |
| 792 # a NonImmediate type is a type that stays a pointer even in | 794 # a NonImmediate type is a type that stays a pointer even in |
| 793 # and immediate version of acommand. | 795 # and immediate version of acommand. |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 }, | 991 }, |
| 990 'Finish': { | 992 'Finish': { |
| 991 'impl_func': False, | 993 'impl_func': False, |
| 992 'client_test': False, | 994 'client_test': False, |
| 993 'decoder_func': 'DoFinish', | 995 'decoder_func': 'DoFinish', |
| 994 }, | 996 }, |
| 995 'Flush': { | 997 'Flush': { |
| 996 'impl_func': False, | 998 'impl_func': False, |
| 997 'decoder_func': 'DoFlush', | 999 'decoder_func': 'DoFlush', |
| 998 }, | 1000 }, |
| 1001 'ShallowFlushCHROMIUM': { |
| 1002 'impl_func': False, |
| 1003 'gen_cmd': False, |
| 1004 'extension': True, |
| 1005 'chromium': True, |
| 1006 'client_test': False, |
| 1007 }, |
| 999 'FramebufferRenderbuffer': { | 1008 'FramebufferRenderbuffer': { |
| 1000 'decoder_func': 'DoFramebufferRenderbuffer', | 1009 'decoder_func': 'DoFramebufferRenderbuffer', |
| 1001 'gl_test_func': 'glFramebufferRenderbufferEXT', | 1010 'gl_test_func': 'glFramebufferRenderbufferEXT', |
| 1002 }, | 1011 }, |
| 1003 'FramebufferTexture2D': { | 1012 'FramebufferTexture2D': { |
| 1004 'decoder_func': 'DoFramebufferTexture2D', | 1013 'decoder_func': 'DoFramebufferTexture2D', |
| 1005 'gl_test_func': 'glFramebufferTexture2DEXT', | 1014 'gl_test_func': 'glFramebufferTexture2DEXT', |
| 1006 }, | 1015 }, |
| 1007 'GenerateMipmap': { | 1016 'GenerateMipmap': { |
| 1008 'decoder_func': 'DoGenerateMipmap', | 1017 'decoder_func': 'DoGenerateMipmap', |
| (...skipping 5259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6268 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 6277 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
| 6269 | 6278 |
| 6270 if gen.errors > 0: | 6279 if gen.errors > 0: |
| 6271 print "%d errors" % gen.errors | 6280 print "%d errors" % gen.errors |
| 6272 return 1 | 6281 return 1 |
| 6273 return 0 | 6282 return 0 |
| 6274 | 6283 |
| 6275 | 6284 |
| 6276 if __name__ == '__main__': | 6285 if __name__ == '__main__': |
| 6277 sys.exit(main(sys.argv[1:])) | 6286 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |