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 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1995 'trace_level': 2, | 1995 'trace_level': 2, |
1996 }, | 1996 }, |
1997 'DrawElements': { | 1997 'DrawElements': { |
1998 'type': 'Manual', | 1998 'type': 'Manual', |
1999 'cmd_args': 'GLenumDrawMode mode, GLsizei count, ' | 1999 'cmd_args': 'GLenumDrawMode mode, GLsizei count, ' |
2000 'GLenumIndexType type, GLuint index_offset', | 2000 'GLenumIndexType type, GLuint index_offset', |
2001 'client_test': False, | 2001 'client_test': False, |
2002 'defer_draws': True, | 2002 'defer_draws': True, |
2003 'trace_level': 2, | 2003 'trace_level': 2, |
2004 }, | 2004 }, |
| 2005 'DrawRangeElements': { |
| 2006 'type': 'Manual', |
| 2007 'gen_cmd': 'False', |
| 2008 'unsafe': True, |
| 2009 }, |
2005 'Enable': { | 2010 'Enable': { |
2006 'decoder_func': 'DoEnable', | 2011 'decoder_func': 'DoEnable', |
2007 'impl_func': False, | 2012 'impl_func': False, |
2008 'client_test': False, | 2013 'client_test': False, |
2009 }, | 2014 }, |
2010 'EnableVertexAttribArray': { | 2015 'EnableVertexAttribArray': { |
2011 'decoder_func': 'DoEnableVertexAttribArray', | 2016 'decoder_func': 'DoEnableVertexAttribArray', |
2012 'impl_decl': False, | 2017 'impl_decl': False, |
2013 }, | 2018 }, |
2014 'FenceSync': { | 2019 'FenceSync': { |
(...skipping 8304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10319 Format(gen.generated_cpp_filenames) | 10324 Format(gen.generated_cpp_filenames) |
10320 | 10325 |
10321 if gen.errors > 0: | 10326 if gen.errors > 0: |
10322 print "%d errors" % gen.errors | 10327 print "%d errors" % gen.errors |
10323 return 1 | 10328 return 1 |
10324 return 0 | 10329 return 0 |
10325 | 10330 |
10326 | 10331 |
10327 if __name__ == '__main__': | 10332 if __name__ == '__main__': |
10328 sys.exit(main(sys.argv[1:])) | 10333 sys.exit(main(sys.argv[1:])) |
OLD | NEW |