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

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

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

Powered by Google App Engine
This is Rietveld 408576698