| 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 4534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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': { | 4551 'SetEnableDCLayersCHROMIUM': { |
| 4552 'decoder_func': 'DoSetEnableDCLayersCHROMIUM', | 4552 'decoder_func': 'DoSetEnableDCLayersCHROMIUM', |
| 4553 'extension': 'CHROMIUM_dc_layers', | 4553 'extension': 'CHROMIUM_dc_layers', |
| 4554 }, | 4554 }, |
| 4555 'InitializeDiscardableTextureCHROMIUM': { |
| 4556 'type': 'Custom', |
| 4557 'cmd_args': 'GLuint texture_id, uint32_t shm_id, ' |
| 4558 'uint32_t shm_offset', |
| 4559 'impl_func': False, |
| 4560 'client_test': False, |
| 4561 'extension': True, |
| 4562 }, |
| 4563 'UnlockDiscardableTextureCHROMIUM': { |
| 4564 'type': 'Custom', |
| 4565 'cmd_args': 'GLuint texture_id', |
| 4566 'impl_func': False, |
| 4567 'client_test': False, |
| 4568 'extension': True, |
| 4569 }, |
| 4570 'LockDiscardableTextureCHROMIUM': { |
| 4571 'type': 'NoCommand', |
| 4572 'extension': True, |
| 4573 }, |
| 4555 } | 4574 } |
| 4556 | 4575 |
| 4557 | 4576 |
| 4558 def Grouper(n, iterable, fillvalue=None): | 4577 def Grouper(n, iterable, fillvalue=None): |
| 4559 """Collect data into fixed-length chunks or blocks""" | 4578 """Collect data into fixed-length chunks or blocks""" |
| 4560 args = [iter(iterable)] * n | 4579 args = [iter(iterable)] * n |
| 4561 return itertools.izip_longest(fillvalue=fillvalue, *args) | 4580 return itertools.izip_longest(fillvalue=fillvalue, *args) |
| 4562 | 4581 |
| 4563 | 4582 |
| 4564 def SplitWords(input_string): | 4583 def SplitWords(input_string): |
| (...skipping 6684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11249 Format(gen.generated_cpp_filenames) | 11268 Format(gen.generated_cpp_filenames) |
| 11250 | 11269 |
| 11251 if gen.errors > 0: | 11270 if gen.errors > 0: |
| 11252 print "%d errors" % gen.errors | 11271 print "%d errors" % gen.errors |
| 11253 return 1 | 11272 return 1 |
| 11254 return 0 | 11273 return 0 |
| 11255 | 11274 |
| 11256 | 11275 |
| 11257 if __name__ == '__main__': | 11276 if __name__ == '__main__': |
| 11258 sys.exit(main(sys.argv[1:])) | 11277 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |