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

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

Issue 2025673003: command_buffer: expose SRC_ALPHA_SATURATE when on GLES 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Proper fix Created 4 years, 6 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 | « no previous file | gpu/command_buffer/common/gles2_cmd_utils_implementation_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 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 'GL_ONE_MINUS_DST_COLOR', 1168 'GL_ONE_MINUS_DST_COLOR',
1169 'GL_SRC_ALPHA', 1169 'GL_SRC_ALPHA',
1170 'GL_ONE_MINUS_SRC_ALPHA', 1170 'GL_ONE_MINUS_SRC_ALPHA',
1171 'GL_DST_ALPHA', 1171 'GL_DST_ALPHA',
1172 'GL_ONE_MINUS_DST_ALPHA', 1172 'GL_ONE_MINUS_DST_ALPHA',
1173 'GL_CONSTANT_COLOR', 1173 'GL_CONSTANT_COLOR',
1174 'GL_ONE_MINUS_CONSTANT_COLOR', 1174 'GL_ONE_MINUS_CONSTANT_COLOR',
1175 'GL_CONSTANT_ALPHA', 1175 'GL_CONSTANT_ALPHA',
1176 'GL_ONE_MINUS_CONSTANT_ALPHA', 1176 'GL_ONE_MINUS_CONSTANT_ALPHA',
1177 ], 1177 ],
1178 'valid_es3': [
1179 'GL_SRC_ALPHA_SATURATE'
1180 ]
1178 }, 1181 },
1179 'Capability': { 1182 'Capability': {
1180 'type': 'GLenum', 1183 'type': 'GLenum',
1181 'valid': ["GL_%s" % cap['name'].upper() for cap in _CAPABILITY_FLAGS 1184 'valid': ["GL_%s" % cap['name'].upper() for cap in _CAPABILITY_FLAGS
1182 if ('es3' not in cap or cap['es3'] != True) 1185 if ('es3' not in cap or cap['es3'] != True)
1183 and 'extension_flag' not in cap], 1186 and 'extension_flag' not in cap],
1184 'valid_es3': ["GL_%s" % cap['name'].upper() for cap in _CAPABILITY_FLAGS 1187 'valid_es3': ["GL_%s" % cap['name'].upper() for cap in _CAPABILITY_FLAGS
1185 if ('es3' in cap and cap['es3'] == True) 1188 if ('es3' in cap and cap['es3'] == True)
1186 and 'extension_flag' not in cap], 1189 and 'extension_flag' not in cap],
1187 'invalid': [ 1190 'invalid': [
(...skipping 10122 matching lines...) Expand 10 before | Expand all | Expand 10 after
11310 Format(gen.generated_cpp_filenames) 11313 Format(gen.generated_cpp_filenames)
11311 11314
11312 if gen.errors > 0: 11315 if gen.errors > 0:
11313 print "%d errors" % gen.errors 11316 print "%d errors" % gen.errors
11314 return 1 11317 return 1
11315 return 0 11318 return 0
11316 11319
11317 11320
11318 if __name__ == '__main__': 11321 if __name__ == '__main__':
11319 sys.exit(main(sys.argv[1:])) 11322 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698