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

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

Issue 1298523003: Add GL_CHROMIUM_screen_space_antialiasing to support alternative AA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add extension Created 5 years, 3 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 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after
2126 # id_mapping: A list of resource type names whose client side IDs need to be 2126 # id_mapping: A list of resource type names whose client side IDs need to be
2127 # mapped to service side IDs. This is only used for unsafe APIs. 2127 # mapped to service side IDs. This is only used for unsafe APIs.
2128 2128
2129 _FUNCTION_INFO = { 2129 _FUNCTION_INFO = {
2130 'ActiveTexture': { 2130 'ActiveTexture': {
2131 'decoder_func': 'DoActiveTexture', 2131 'decoder_func': 'DoActiveTexture',
2132 'unit_test': False, 2132 'unit_test': False,
2133 'impl_func': False, 2133 'impl_func': False,
2134 'client_test': False, 2134 'client_test': False,
2135 }, 2135 },
2136 'ApplyScreenSpaceAntialiasing': {
Ken Russell (switch to Gerrit) 2015/08/28 02:34:03 CHROMIUM extension suffix here.
2137 'decoder_func': 'DoApplyScreenSpaceAntialiasing',
Ken Russell (switch to Gerrit) 2015/08/28 02:34:03 Same here.
2138 'extension_flag': 'chromium_screen_space_antialiasing',
2139 'unit_test': False,
2140 'client_test': False,
2141 },
2136 'AttachShader': {'decoder_func': 'DoAttachShader'}, 2142 'AttachShader': {'decoder_func': 'DoAttachShader'},
2137 'BindAttribLocation': { 2143 'BindAttribLocation': {
2138 'type': 'GLchar', 2144 'type': 'GLchar',
2139 'data_transfer_methods': ['bucket'], 2145 'data_transfer_methods': ['bucket'],
2140 'needs_size': True, 2146 'needs_size': True,
2141 }, 2147 },
2142 'BindBuffer': { 2148 'BindBuffer': {
2143 'type': 'Bind', 2149 'type': 'Bind',
2144 'decoder_func': 'DoBindBuffer', 2150 'decoder_func': 'DoBindBuffer',
2145 'gen_func': 'GenBuffersARB', 2151 'gen_func': 'GenBuffersARB',
(...skipping 8907 matching lines...) Expand 10 before | Expand all | Expand 10 after
11053 Format(gen.generated_cpp_filenames) 11059 Format(gen.generated_cpp_filenames)
11054 11060
11055 if gen.errors > 0: 11061 if gen.errors > 0:
11056 print "%d errors" % gen.errors 11062 print "%d errors" % gen.errors
11057 return 1 11063 return 1
11058 return 0 11064 return 0
11059 11065
11060 11066
11061 if __name__ == '__main__': 11067 if __name__ == '__main__':
11062 sys.exit(main(sys.argv[1:])) 11068 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698