| 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 2295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2306 'unit_test': False, | 2306 'unit_test': False, |
| 2307 'client_test': False, | 2307 'client_test': False, |
| 2308 'extension': True, | 2308 'extension': True, |
| 2309 }, | 2309 }, |
| 2310 'LoseContextCHROMIUM': { | 2310 'LoseContextCHROMIUM': { |
| 2311 'type': 'Manual', | 2311 'type': 'Manual', |
| 2312 'impl_func': True, | 2312 'impl_func': True, |
| 2313 'extension': True, | 2313 'extension': True, |
| 2314 'chromium': True, | 2314 'chromium': True, |
| 2315 }, | 2315 }, |
| 2316 'WaitSyncPointCHROMIUM': { |
| 2317 'type': 'Custom', |
| 2318 'impl_func': True, |
| 2319 'extension': True, |
| 2320 'chromium': True, |
| 2321 }, |
| 2316 } | 2322 } |
| 2317 | 2323 |
| 2318 | 2324 |
| 2319 def Grouper(n, iterable, fillvalue=None): | 2325 def Grouper(n, iterable, fillvalue=None): |
| 2320 """Collect data into fixed-length chunks or blocks""" | 2326 """Collect data into fixed-length chunks or blocks""" |
| 2321 args = [iter(iterable)] * n | 2327 args = [iter(iterable)] * n |
| 2322 return itertools.izip_longest(fillvalue=fillvalue, *args) | 2328 return itertools.izip_longest(fillvalue=fillvalue, *args) |
| 2323 | 2329 |
| 2324 | 2330 |
| 2325 def SplitWords(input_string): | 2331 def SplitWords(input_string): |
| (...skipping 5241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7567 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") | 7573 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") |
| 7568 | 7574 |
| 7569 if gen.errors > 0: | 7575 if gen.errors > 0: |
| 7570 print "%d errors" % gen.errors | 7576 print "%d errors" % gen.errors |
| 7571 return 1 | 7577 return 1 |
| 7572 return 0 | 7578 return 0 |
| 7573 | 7579 |
| 7574 | 7580 |
| 7575 if __name__ == '__main__': | 7581 if __name__ == '__main__': |
| 7576 sys.exit(main(sys.argv[1:])) | 7582 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |