| 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 4522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4533 'gl_test_func': 'DoBindFragmentInputLocationCHROMIUM', | 4533 'gl_test_func': 'DoBindFragmentInputLocationCHROMIUM', |
| 4534 'extension': 'CHROMIUM_path_rendering', | 4534 'extension': 'CHROMIUM_path_rendering', |
| 4535 'extension_flag': 'chromium_path_rendering', | 4535 'extension_flag': 'chromium_path_rendering', |
| 4536 }, | 4536 }, |
| 4537 'ProgramPathFragmentInputGenCHROMIUM': { | 4537 'ProgramPathFragmentInputGenCHROMIUM': { |
| 4538 'type': 'Custom', | 4538 'type': 'Custom', |
| 4539 'data_transfer_methods': ['shm'], | 4539 'data_transfer_methods': ['shm'], |
| 4540 'extension': 'CHROMIUM_path_rendering', | 4540 'extension': 'CHROMIUM_path_rendering', |
| 4541 'extension_flag': 'chromium_path_rendering', | 4541 'extension_flag': 'chromium_path_rendering', |
| 4542 }, | 4542 }, |
| 4543 'SetDrawRectangleCHROMIUM': { |
| 4544 'decoder_func': 'DoSetDrawRectangleCHROMIUM', |
| 4545 'extension': 'CHROMIUM_set_draw_rectangle', |
| 4546 }, |
| 4543 } | 4547 } |
| 4544 | 4548 |
| 4545 | 4549 |
| 4546 def Grouper(n, iterable, fillvalue=None): | 4550 def Grouper(n, iterable, fillvalue=None): |
| 4547 """Collect data into fixed-length chunks or blocks""" | 4551 """Collect data into fixed-length chunks or blocks""" |
| 4548 args = [iter(iterable)] * n | 4552 args = [iter(iterable)] * n |
| 4549 return itertools.izip_longest(fillvalue=fillvalue, *args) | 4553 return itertools.izip_longest(fillvalue=fillvalue, *args) |
| 4550 | 4554 |
| 4551 | 4555 |
| 4552 def SplitWords(input_string): | 4556 def SplitWords(input_string): |
| (...skipping 6664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11217 Format(gen.generated_cpp_filenames) | 11221 Format(gen.generated_cpp_filenames) |
| 11218 | 11222 |
| 11219 if gen.errors > 0: | 11223 if gen.errors > 0: |
| 11220 print "%d errors" % gen.errors | 11224 print "%d errors" % gen.errors |
| 11221 return 1 | 11225 return 1 |
| 11222 return 0 | 11226 return 0 |
| 11223 | 11227 |
| 11224 | 11228 |
| 11225 if __name__ == '__main__': | 11229 if __name__ == '__main__': |
| 11226 sys.exit(main(sys.argv[1:])) | 11230 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |