| 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 4508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4519 'gl_test_func': 'DoBindFragmentInputLocationCHROMIUM', | 4519 'gl_test_func': 'DoBindFragmentInputLocationCHROMIUM', |
| 4520 'extension': 'CHROMIUM_path_rendering', | 4520 'extension': 'CHROMIUM_path_rendering', |
| 4521 'extension_flag': 'chromium_path_rendering', | 4521 'extension_flag': 'chromium_path_rendering', |
| 4522 }, | 4522 }, |
| 4523 'ProgramPathFragmentInputGenCHROMIUM': { | 4523 'ProgramPathFragmentInputGenCHROMIUM': { |
| 4524 'type': 'Custom', | 4524 'type': 'Custom', |
| 4525 'data_transfer_methods': ['shm'], | 4525 'data_transfer_methods': ['shm'], |
| 4526 'extension': 'CHROMIUM_path_rendering', | 4526 'extension': 'CHROMIUM_path_rendering', |
| 4527 'extension_flag': 'chromium_path_rendering', | 4527 'extension_flag': 'chromium_path_rendering', |
| 4528 }, | 4528 }, |
| 4529 'SetDrawRectangleCHROMIUM': { |
| 4530 'decoder_func': 'DoSetDrawRectangleCHROMIUM', |
| 4531 'extension': 'CHROMIUM_set_draw_rectangle', |
| 4532 }, |
| 4529 } | 4533 } |
| 4530 | 4534 |
| 4531 | 4535 |
| 4532 def Grouper(n, iterable, fillvalue=None): | 4536 def Grouper(n, iterable, fillvalue=None): |
| 4533 """Collect data into fixed-length chunks or blocks""" | 4537 """Collect data into fixed-length chunks or blocks""" |
| 4534 args = [iter(iterable)] * n | 4538 args = [iter(iterable)] * n |
| 4535 return itertools.izip_longest(fillvalue=fillvalue, *args) | 4539 return itertools.izip_longest(fillvalue=fillvalue, *args) |
| 4536 | 4540 |
| 4537 | 4541 |
| 4538 def SplitWords(input_string): | 4542 def SplitWords(input_string): |
| (...skipping 6684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11223 Format(gen.generated_cpp_filenames) | 11227 Format(gen.generated_cpp_filenames) |
| 11224 | 11228 |
| 11225 if gen.errors > 0: | 11229 if gen.errors > 0: |
| 11226 print "%d errors" % gen.errors | 11230 print "%d errors" % gen.errors |
| 11227 return 1 | 11231 return 1 |
| 11228 return 0 | 11232 return 0 |
| 11229 | 11233 |
| 11230 | 11234 |
| 11231 if __name__ == '__main__': | 11235 if __name__ == '__main__': |
| 11232 sys.exit(main(sys.argv[1:])) | 11236 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |