Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698