| 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 4530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4541 'ProgramPathFragmentInputGenCHROMIUM': { | 4541 'ProgramPathFragmentInputGenCHROMIUM': { |
| 4542 'type': 'Custom', | 4542 'type': 'Custom', |
| 4543 'data_transfer_methods': ['shm'], | 4543 'data_transfer_methods': ['shm'], |
| 4544 'extension': 'CHROMIUM_path_rendering', | 4544 'extension': 'CHROMIUM_path_rendering', |
| 4545 'extension_flag': 'chromium_path_rendering', | 4545 'extension_flag': 'chromium_path_rendering', |
| 4546 }, | 4546 }, |
| 4547 'SetDrawRectangleCHROMIUM': { | 4547 'SetDrawRectangleCHROMIUM': { |
| 4548 'decoder_func': 'DoSetDrawRectangleCHROMIUM', | 4548 'decoder_func': 'DoSetDrawRectangleCHROMIUM', |
| 4549 'extension': 'CHROMIUM_set_draw_rectangle', | 4549 'extension': 'CHROMIUM_set_draw_rectangle', |
| 4550 }, | 4550 }, |
| 4551 'SetEnableDCLayersCHROMIUM': { |
| 4552 'decoder_func': 'DoSetEnableDCLayersCHROMIUM', |
| 4553 'extension': 'CHROMIUM_dc_layers', |
| 4554 }, |
| 4551 } | 4555 } |
| 4552 | 4556 |
| 4553 | 4557 |
| 4554 def Grouper(n, iterable, fillvalue=None): | 4558 def Grouper(n, iterable, fillvalue=None): |
| 4555 """Collect data into fixed-length chunks or blocks""" | 4559 """Collect data into fixed-length chunks or blocks""" |
| 4556 args = [iter(iterable)] * n | 4560 args = [iter(iterable)] * n |
| 4557 return itertools.izip_longest(fillvalue=fillvalue, *args) | 4561 return itertools.izip_longest(fillvalue=fillvalue, *args) |
| 4558 | 4562 |
| 4559 | 4563 |
| 4560 def SplitWords(input_string): | 4564 def SplitWords(input_string): |
| (...skipping 6684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11245 Format(gen.generated_cpp_filenames) | 11249 Format(gen.generated_cpp_filenames) |
| 11246 | 11250 |
| 11247 if gen.errors > 0: | 11251 if gen.errors > 0: |
| 11248 print "%d errors" % gen.errors | 11252 print "%d errors" % gen.errors |
| 11249 return 1 | 11253 return 1 |
| 11250 return 0 | 11254 return 0 |
| 11251 | 11255 |
| 11252 | 11256 |
| 11253 if __name__ == '__main__': | 11257 if __name__ == '__main__': |
| 11254 sys.exit(main(sys.argv[1:])) | 11258 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |