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 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2197 'TraceBeginCHROMIUM': { | 2197 'TraceBeginCHROMIUM': { |
2198 'type': 'Custom', | 2198 'type': 'Custom', |
2199 'impl_func': False, | 2199 'impl_func': False, |
2200 'immediate': False, | 2200 'immediate': False, |
2201 'client_test': False, | 2201 'client_test': False, |
2202 'cmd_args': 'GLuint bucket_id', | 2202 'cmd_args': 'GLuint bucket_id', |
2203 'extension': True, | 2203 'extension': True, |
2204 'chromium': True, | 2204 'chromium': True, |
2205 }, | 2205 }, |
2206 'TraceEndCHROMIUM': { | 2206 'TraceEndCHROMIUM': { |
| 2207 'impl_func': False, |
| 2208 'immediate': False, |
| 2209 'client_test': False, |
2207 'decoder_func': 'DoTraceEndCHROMIUM', | 2210 'decoder_func': 'DoTraceEndCHROMIUM', |
2208 'unit_test': False, | 2211 'unit_test': False, |
2209 'extension': True, | 2212 'extension': True, |
2210 'chromium': True, | 2213 'chromium': True, |
2211 }, | 2214 }, |
2212 } | 2215 } |
2213 | 2216 |
2214 | 2217 |
2215 def Grouper(n, iterable, fillvalue=None): | 2218 def Grouper(n, iterable, fillvalue=None): |
2216 """Collect data into fixed-length chunks or blocks""" | 2219 """Collect data into fixed-length chunks or blocks""" |
(...skipping 5045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7262 gen.WriteGLES2Header("../../third_party/khronos/GLES2/gl2chromium.h") | 7265 gen.WriteGLES2Header("../../third_party/khronos/GLES2/gl2chromium.h") |
7263 | 7266 |
7264 if gen.errors > 0: | 7267 if gen.errors > 0: |
7265 print "%d errors" % gen.errors | 7268 print "%d errors" % gen.errors |
7266 return 1 | 7269 return 1 |
7267 return 0 | 7270 return 0 |
7268 | 7271 |
7269 | 7272 |
7270 if __name__ == '__main__': | 7273 if __name__ == '__main__': |
7271 sys.exit(main(sys.argv[1:])) | 7274 sys.exit(main(sys.argv[1:])) |
OLD | NEW |