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 4539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4550 'extension_flag': 'chromium_path_rendering', | 4550 'extension_flag': 'chromium_path_rendering', |
4551 }, | 4551 }, |
4552 'SetDrawRectangleCHROMIUM': { | 4552 'SetDrawRectangleCHROMIUM': { |
4553 'decoder_func': 'DoSetDrawRectangleCHROMIUM', | 4553 'decoder_func': 'DoSetDrawRectangleCHROMIUM', |
4554 'extension': 'CHROMIUM_set_draw_rectangle', | 4554 'extension': 'CHROMIUM_set_draw_rectangle', |
4555 }, | 4555 }, |
4556 'SetEnableDCLayersCHROMIUM': { | 4556 'SetEnableDCLayersCHROMIUM': { |
4557 'decoder_func': 'DoSetEnableDCLayersCHROMIUM', | 4557 'decoder_func': 'DoSetEnableDCLayersCHROMIUM', |
4558 'extension': 'CHROMIUM_dc_layers', | 4558 'extension': 'CHROMIUM_dc_layers', |
4559 }, | 4559 }, |
| 4560 'InitializeDiscardableTextureCHROMIUM': { |
| 4561 'type': 'Custom', |
| 4562 'cmd_args': 'GLuint texture_id, uint32_t shm_id, ' |
| 4563 'uint32_t shm_offset', |
| 4564 'impl_func': False, |
| 4565 'client_test': False, |
| 4566 'extension': True, |
| 4567 }, |
| 4568 'UnlockDiscardableTextureCHROMIUM': { |
| 4569 'type': 'Custom', |
| 4570 'cmd_args': 'GLuint texture_id', |
| 4571 'impl_func': False, |
| 4572 'client_test': False, |
| 4573 'extension': True, |
| 4574 }, |
| 4575 'LockDiscardableTextureCHROMIUM': { |
| 4576 'type': 'Custom', |
| 4577 'cmd_args': 'GLuint texture_id', |
| 4578 'impl_func': False, |
| 4579 'client_test': False, |
| 4580 'extension': True, |
| 4581 }, |
4560 } | 4582 } |
4561 | 4583 |
4562 | 4584 |
4563 def Grouper(n, iterable, fillvalue=None): | 4585 def Grouper(n, iterable, fillvalue=None): |
4564 """Collect data into fixed-length chunks or blocks""" | 4586 """Collect data into fixed-length chunks or blocks""" |
4565 args = [iter(iterable)] * n | 4587 args = [iter(iterable)] * n |
4566 return itertools.izip_longest(fillvalue=fillvalue, *args) | 4588 return itertools.izip_longest(fillvalue=fillvalue, *args) |
4567 | 4589 |
4568 | 4590 |
4569 def SplitWords(input_string): | 4591 def SplitWords(input_string): |
(...skipping 6684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11254 Format(gen.generated_cpp_filenames) | 11276 Format(gen.generated_cpp_filenames) |
11255 | 11277 |
11256 if gen.errors > 0: | 11278 if gen.errors > 0: |
11257 print "%d errors" % gen.errors | 11279 print "%d errors" % gen.errors |
11258 return 1 | 11280 return 1 |
11259 return 0 | 11281 return 0 |
11260 | 11282 |
11261 | 11283 |
11262 if __name__ == '__main__': | 11284 if __name__ == '__main__': |
11263 sys.exit(main(sys.argv[1:])) | 11285 sys.exit(main(sys.argv[1:])) |
OLD | NEW |