| 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 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1991 '1', | 1991 '1', |
| 1992 '2', | 1992 '2', |
| 1993 '3', | 1993 '3', |
| 1994 '4', | 1994 '4', |
| 1995 ], | 1995 ], |
| 1996 'invalid': [ | 1996 'invalid': [ |
| 1997 '0', | 1997 '0', |
| 1998 '5', | 1998 '5', |
| 1999 ], | 1999 ], |
| 2000 }, | 2000 }, |
| 2001 'ZeroOnly': { | |
| 2002 'type': 'GLint', | |
| 2003 'is_complete': True, | |
| 2004 'valid': [ | |
| 2005 '0', | |
| 2006 ], | |
| 2007 'invalid': [ | |
| 2008 '1', | |
| 2009 ], | |
| 2010 }, | |
| 2011 'FalseOnly': { | 2001 'FalseOnly': { |
| 2012 'type': 'GLboolean', | 2002 'type': 'GLboolean', |
| 2013 'is_complete': True, | 2003 'is_complete': True, |
| 2014 'valid': [ | 2004 'valid': [ |
| 2015 'false', | 2005 'false', |
| 2016 ], | 2006 ], |
| 2017 'invalid': [ | 2007 'invalid': [ |
| 2018 'true', | 2008 'true', |
| 2019 ], | 2009 ], |
| 2020 }, | 2010 }, |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2677 'trace_level': 1, | 2667 'trace_level': 1, |
| 2678 }, | 2668 }, |
| 2679 'FramebufferRenderbuffer': { | 2669 'FramebufferRenderbuffer': { |
| 2680 'decoder_func': 'DoFramebufferRenderbuffer', | 2670 'decoder_func': 'DoFramebufferRenderbuffer', |
| 2681 'gl_test_func': 'glFramebufferRenderbufferEXT', | 2671 'gl_test_func': 'glFramebufferRenderbufferEXT', |
| 2682 'trace_level': 1, | 2672 'trace_level': 1, |
| 2683 }, | 2673 }, |
| 2684 'FramebufferTexture2D': { | 2674 'FramebufferTexture2D': { |
| 2685 'decoder_func': 'DoFramebufferTexture2D', | 2675 'decoder_func': 'DoFramebufferTexture2D', |
| 2686 'gl_test_func': 'glFramebufferTexture2DEXT', | 2676 'gl_test_func': 'glFramebufferTexture2DEXT', |
| 2677 'unit_test': False, |
| 2687 'trace_level': 1, | 2678 'trace_level': 1, |
| 2688 }, | 2679 }, |
| 2689 'FramebufferTexture2DMultisampleEXT': { | 2680 'FramebufferTexture2DMultisampleEXT': { |
| 2690 'decoder_func': 'DoFramebufferTexture2DMultisample', | 2681 'decoder_func': 'DoFramebufferTexture2DMultisample', |
| 2691 'gl_test_func': 'glFramebufferTexture2DMultisampleEXT', | 2682 'gl_test_func': 'glFramebufferTexture2DMultisampleEXT', |
| 2692 'expectation': False, | 2683 'expectation': False, |
| 2693 'unit_test': False, | 2684 'unit_test': False, |
| 2694 'extension': 'EXT_multisampled_render_to_texture', | 2685 'extension': 'EXT_multisampled_render_to_texture', |
| 2695 'extension_flag': 'multisampled_render_to_texture', | 2686 'extension_flag': 'multisampled_render_to_texture', |
| 2696 'trace_level': 1, | 2687 'trace_level': 1, |
| (...skipping 8408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11105 Format(gen.generated_cpp_filenames) | 11096 Format(gen.generated_cpp_filenames) |
| 11106 | 11097 |
| 11107 if gen.errors > 0: | 11098 if gen.errors > 0: |
| 11108 print "%d errors" % gen.errors | 11099 print "%d errors" % gen.errors |
| 11109 return 1 | 11100 return 1 |
| 11110 return 0 | 11101 return 0 |
| 11111 | 11102 |
| 11112 | 11103 |
| 11113 if __name__ == '__main__': | 11104 if __name__ == '__main__': |
| 11114 sys.exit(main(sys.argv[1:])) | 11105 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |