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 2338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2349 'impl_func': False, | 2349 'impl_func': False, |
2350 'extension': True, | 2350 'extension': True, |
2351 'chromium': True, | 2351 'chromium': True, |
2352 }, | 2352 }, |
2353 'WaitSyncPointCHROMIUM': { | 2353 'WaitSyncPointCHROMIUM': { |
2354 'type': 'Custom', | 2354 'type': 'Custom', |
2355 'impl_func': True, | 2355 'impl_func': True, |
2356 'extension': True, | 2356 'extension': True, |
2357 'chromium': True, | 2357 'chromium': True, |
2358 }, | 2358 }, |
| 2359 'EncodeBackbufferCHROMIUM': { |
| 2360 'type': 'Custom', |
| 2361 'impl_func': True, |
| 2362 'extension': True, |
| 2363 'chromium': True, |
| 2364 }, |
2359 } | 2365 } |
2360 | 2366 |
2361 | 2367 |
2362 def Grouper(n, iterable, fillvalue=None): | 2368 def Grouper(n, iterable, fillvalue=None): |
2363 """Collect data into fixed-length chunks or blocks""" | 2369 """Collect data into fixed-length chunks or blocks""" |
2364 args = [iter(iterable)] * n | 2370 args = [iter(iterable)] * n |
2365 return itertools.izip_longest(fillvalue=fillvalue, *args) | 2371 return itertools.izip_longest(fillvalue=fillvalue, *args) |
2366 | 2372 |
2367 | 2373 |
2368 def SplitWords(input_string): | 2374 def SplitWords(input_string): |
(...skipping 5292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7661 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") | 7667 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") |
7662 | 7668 |
7663 if gen.errors > 0: | 7669 if gen.errors > 0: |
7664 print "%d errors" % gen.errors | 7670 print "%d errors" % gen.errors |
7665 return 1 | 7671 return 1 |
7666 return 0 | 7672 return 0 |
7667 | 7673 |
7668 | 7674 |
7669 if __name__ == '__main__': | 7675 if __name__ == '__main__': |
7670 sys.exit(main(sys.argv[1:])) | 7676 sys.exit(main(sys.argv[1:])) |
OLD | NEW |