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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: better 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 4524 matching lines...) Expand 10 before | Expand all | Expand 10 after
4535 'gl_test_func': 'DoBindFragmentInputLocationCHROMIUM', 4535 'gl_test_func': 'DoBindFragmentInputLocationCHROMIUM',
4536 'extension': 'CHROMIUM_path_rendering', 4536 'extension': 'CHROMIUM_path_rendering',
4537 'extension_flag': 'chromium_path_rendering', 4537 'extension_flag': 'chromium_path_rendering',
4538 }, 4538 },
4539 'ProgramPathFragmentInputGenCHROMIUM': { 4539 'ProgramPathFragmentInputGenCHROMIUM': {
4540 'type': 'Custom', 4540 'type': 'Custom',
4541 'data_transfer_methods': ['shm'], 4541 'data_transfer_methods': ['shm'],
4542 'extension': 'CHROMIUM_path_rendering', 4542 'extension': 'CHROMIUM_path_rendering',
4543 'extension_flag': 'chromium_path_rendering', 4543 'extension_flag': 'chromium_path_rendering',
4544 }, 4544 },
4545 'SetDrawRectangleCHROMIUM': {
4546 'decoder_func': 'DoSetDrawRectangleCHROMIUM',
4547 'extension': 'CHROMIUM_set_draw_rectangle',
4548 },
4545 } 4549 }
4546 4550
4547 4551
4548 def Grouper(n, iterable, fillvalue=None): 4552 def Grouper(n, iterable, fillvalue=None):
4549 """Collect data into fixed-length chunks or blocks""" 4553 """Collect data into fixed-length chunks or blocks"""
4550 args = [iter(iterable)] * n 4554 args = [iter(iterable)] * n
4551 return itertools.izip_longest(fillvalue=fillvalue, *args) 4555 return itertools.izip_longest(fillvalue=fillvalue, *args)
4552 4556
4553 4557
4554 def SplitWords(input_string): 4558 def SplitWords(input_string):
(...skipping 6657 matching lines...) Expand 10 before | Expand all | Expand 10 after
11212 Format(gen.generated_cpp_filenames) 11216 Format(gen.generated_cpp_filenames)
11213 11217
11214 if gen.errors > 0: 11218 if gen.errors > 0:
11215 print "%d errors" % gen.errors 11219 print "%d errors" % gen.errors
11216 return 1 11220 return 1
11217 return 0 11221 return 0
11218 11222
11219 11223
11220 if __name__ == '__main__': 11224 if __name__ == '__main__':
11221 sys.exit(main(sys.argv[1:])) 11225 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698