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 4542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4553 'extension_flag': 'chromium_path_rendering', | 4553 'extension_flag': 'chromium_path_rendering', |
4554 }, | 4554 }, |
4555 'SetDrawRectangleCHROMIUM': { | 4555 'SetDrawRectangleCHROMIUM': { |
4556 'decoder_func': 'DoSetDrawRectangleCHROMIUM', | 4556 'decoder_func': 'DoSetDrawRectangleCHROMIUM', |
4557 'extension': 'CHROMIUM_set_draw_rectangle', | 4557 'extension': 'CHROMIUM_set_draw_rectangle', |
4558 }, | 4558 }, |
4559 'SetEnableDCLayersCHROMIUM': { | 4559 'SetEnableDCLayersCHROMIUM': { |
4560 'decoder_func': 'DoSetEnableDCLayersCHROMIUM', | 4560 'decoder_func': 'DoSetEnableDCLayersCHROMIUM', |
4561 'extension': 'CHROMIUM_dc_layers', | 4561 'extension': 'CHROMIUM_dc_layers', |
4562 }, | 4562 }, |
| 4563 'InitializeDiscardableTextureCHROMIUM': { |
| 4564 'type': 'Custom', |
| 4565 'cmd_args': 'GLuint texture_id, uint32_t shm_id, ' |
| 4566 'uint32_t shm_offset', |
| 4567 'impl_func': False, |
| 4568 'client_test': False, |
| 4569 'extension': True, |
| 4570 }, |
| 4571 'UnlockDiscardableTextureCHROMIUM': { |
| 4572 'type': 'Custom', |
| 4573 'cmd_args': 'GLuint texture_id', |
| 4574 'impl_func': False, |
| 4575 'client_test': False, |
| 4576 'extension': True, |
| 4577 }, |
| 4578 'LockDiscardableTextureCHROMIUM': { |
| 4579 'type': 'Custom', |
| 4580 'cmd_args': 'GLuint texture_id', |
| 4581 'impl_func': False, |
| 4582 'client_test': False, |
| 4583 'extension': True, |
| 4584 }, |
4563 } | 4585 } |
4564 | 4586 |
4565 | 4587 |
4566 def Grouper(n, iterable, fillvalue=None): | 4588 def Grouper(n, iterable, fillvalue=None): |
4567 """Collect data into fixed-length chunks or blocks""" | 4589 """Collect data into fixed-length chunks or blocks""" |
4568 args = [iter(iterable)] * n | 4590 args = [iter(iterable)] * n |
4569 return itertools.izip_longest(fillvalue=fillvalue, *args) | 4591 return itertools.izip_longest(fillvalue=fillvalue, *args) |
4570 | 4592 |
4571 | 4593 |
4572 def SplitWords(input_string): | 4594 def SplitWords(input_string): |
(...skipping 6710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11283 Format(gen.generated_cpp_filenames) | 11305 Format(gen.generated_cpp_filenames) |
11284 | 11306 |
11285 if gen.errors > 0: | 11307 if gen.errors > 0: |
11286 print "%d errors" % gen.errors | 11308 print "%d errors" % gen.errors |
11287 return 1 | 11309 return 1 |
11288 return 0 | 11310 return 0 |
11289 | 11311 |
11290 | 11312 |
11291 if __name__ == '__main__': | 11313 if __name__ == '__main__': |
11292 sys.exit(main(sys.argv[1:])) | 11314 sys.exit(main(sys.argv[1:])) |
OLD | NEW |