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

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

Issue 12806006: Add EncodeBackbufferCHROMIUM support to GLES2 command stream (Closed) Base URL: https://chromium.googlesource.com/chromium/src@yuv_2
Patch Set: Removed extraneous file. Created 7 years, 9 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
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2338 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 'impl_func': False, 2349 'impl_func': False,
2350 'extension': True, 2350 'extension': True,
2351 'chromium': True, 2351 'chromium': True,
2352 }, 2352 },
2353 'WaitSyncPointCHROMIUM': { 2353 'WaitSyncPointCHROMIUM': {
2354 'type': 'Custom', 2354 'type': 'Custom',
2355 'impl_func': True, 2355 'impl_func': True,
2356 'extension': True, 2356 'extension': True,
2357 'chromium': True, 2357 'chromium': True,
2358 }, 2358 },
2359 'EncodeBackbufferCHROMIUM': {
2360 'type': 'Custom',
2361 'impl_func': True,
2362 'extension': True,
2363 'chromium': True,
2364 },
2359 } 2365 }
2360 2366
2361 2367
2362 def Grouper(n, iterable, fillvalue=None): 2368 def Grouper(n, iterable, fillvalue=None):
2363 """Collect data into fixed-length chunks or blocks""" 2369 """Collect data into fixed-length chunks or blocks"""
2364 args = [iter(iterable)] * n 2370 args = [iter(iterable)] * n
2365 return itertools.izip_longest(fillvalue=fillvalue, *args) 2371 return itertools.izip_longest(fillvalue=fillvalue, *args)
2366 2372
2367 2373
2368 def SplitWords(input_string): 2374 def SplitWords(input_string):
(...skipping 5292 matching lines...) Expand 10 before | Expand all | Expand 10 after
7661 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") 7667 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h")
7662 7668
7663 if gen.errors > 0: 7669 if gen.errors > 0:
7664 print "%d errors" % gen.errors 7670 print "%d errors" % gen.errors
7665 return 1 7671 return 1
7666 return 0 7672 return 0
7667 7673
7668 7674
7669 if __name__ == '__main__': 7675 if __name__ == '__main__':
7670 sys.exit(main(sys.argv[1:])) 7676 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698