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 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1972 'trace_level': 2, | 1972 'trace_level': 2, |
1973 }, | 1973 }, |
1974 'DrawElements': { | 1974 'DrawElements': { |
1975 'type': 'Manual', | 1975 'type': 'Manual', |
1976 'cmd_args': 'GLenumDrawMode mode, GLsizei count, ' | 1976 'cmd_args': 'GLenumDrawMode mode, GLsizei count, ' |
1977 'GLenumIndexType type, GLuint index_offset', | 1977 'GLenumIndexType type, GLuint index_offset', |
1978 'client_test': False, | 1978 'client_test': False, |
1979 'defer_draws': True, | 1979 'defer_draws': True, |
1980 'trace_level': 2, | 1980 'trace_level': 2, |
1981 }, | 1981 }, |
| 1982 'DrawRangeElements': { |
| 1983 'type': 'Manual', |
| 1984 'cmd_args': 'GLenumDrawMode mode, GLuint start, GLuint end, ' |
| 1985 'GLsizei count, GLenumIndexType type, GLuint index_offset', |
| 1986 'client_test': False, |
| 1987 'defer_draws': True, |
| 1988 'trace_level': 2, |
| 1989 'unsafe': True, |
| 1990 }, |
1982 'Enable': { | 1991 'Enable': { |
1983 'decoder_func': 'DoEnable', | 1992 'decoder_func': 'DoEnable', |
1984 'impl_func': False, | 1993 'impl_func': False, |
1985 'client_test': False, | 1994 'client_test': False, |
1986 }, | 1995 }, |
1987 'EnableVertexAttribArray': { | 1996 'EnableVertexAttribArray': { |
1988 'decoder_func': 'DoEnableVertexAttribArray', | 1997 'decoder_func': 'DoEnableVertexAttribArray', |
1989 'impl_decl': False, | 1998 'impl_decl': False, |
1990 }, | 1999 }, |
1991 'FenceSync': { | 2000 'FenceSync': { |
(...skipping 8254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10246 Format(gen.generated_cpp_filenames) | 10255 Format(gen.generated_cpp_filenames) |
10247 | 10256 |
10248 if gen.errors > 0: | 10257 if gen.errors > 0: |
10249 print "%d errors" % gen.errors | 10258 print "%d errors" % gen.errors |
10250 return 1 | 10259 return 1 |
10251 return 0 | 10260 return 0 |
10252 | 10261 |
10253 | 10262 |
10254 if __name__ == '__main__': | 10263 if __name__ == '__main__': |
10255 sys.exit(main(sys.argv[1:])) | 10264 sys.exit(main(sys.argv[1:])) |
OLD | NEW |