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

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

Issue 10106015: Allow textures to be moved from one GL context group to another. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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 os 8 import os
9 import os.path 9 import os.path
10 import sys 10 import sys
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 'error_value': 'GL_FRAMEBUFFER_UNSUPPORTED', 853 'error_value': 'GL_FRAMEBUFFER_UNSUPPORTED',
854 'result': ['GLenum'], 854 'result': ['GLenum'],
855 }, 855 },
856 'Clear': {'decoder_func': 'DoClear'}, 856 'Clear': {'decoder_func': 'DoClear'},
857 'ClearColor': {'decoder_func': 'DoClearColor'}, 857 'ClearColor': {'decoder_func': 'DoClearColor'},
858 'ClearDepthf': { 858 'ClearDepthf': {
859 'decoder_func': 'DoClearDepthf', 859 'decoder_func': 'DoClearDepthf',
860 'gl_test_func': 'glClearDepth', 860 'gl_test_func': 'glClearDepth',
861 }, 861 },
862 'ColorMask': {'decoder_func': 'DoColorMask', 'expectation': False}, 862 'ColorMask': {'decoder_func': 'DoColorMask', 'expectation': False},
863 'ConsumeTextureCHROMIUM': {
864 'decoder_func': 'DoConsumeTextureCHROMIUM',
865 'type': 'PUT',
866 'data_type': 'GLint',
867 'count': 32,
868 'unit_test': False,
869 'extension': True,
870 'chromium': True,
871 },
863 'ClearStencil': {'decoder_func': 'DoClearStencil'}, 872 'ClearStencil': {'decoder_func': 'DoClearStencil'},
864 'EnableFeatureCHROMIUM': { 873 'EnableFeatureCHROMIUM': {
865 'type': 'Custom', 874 'type': 'Custom',
866 'immediate': False, 875 'immediate': False,
867 'decoder_func': 'DoEnableFeatureCHROMIUM', 876 'decoder_func': 'DoEnableFeatureCHROMIUM',
868 'expectation': False, 877 'expectation': False,
869 'cmd_args': 'GLuint bucket_id, GLint* result', 878 'cmd_args': 'GLuint bucket_id, GLint* result',
870 'result': ['GLint'], 879 'result': ['GLint'],
871 'extension': True, 880 'extension': True,
872 'chromium': True, 881 'chromium': True,
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 }, 1278 },
1270 'PixelStorei': {'type': 'Manual'}, 1279 'PixelStorei': {'type': 'Manual'},
1271 'PostSubBufferCHROMIUM': { 1280 'PostSubBufferCHROMIUM': {
1272 'type': 'Custom', 1281 'type': 'Custom',
1273 'impl_func': False, 1282 'impl_func': False,
1274 'unit_test': False, 1283 'unit_test': False,
1275 'client_test': False, 1284 'client_test': False,
1276 'extension': True, 1285 'extension': True,
1277 'chromium': True, 1286 'chromium': True,
1278 }, 1287 },
1288 'ProduceTextureCHROMIUM': {
1289 'decoder_func': 'DoProduceTextureCHROMIUM',
1290 'type': 'PUT',
1291 'data_type': 'GLint',
1292 'count': 32,
1293 'unit_test': False,
1294 'extension': True,
1295 'chromium': True,
1296 },
1279 'RenderbufferStorage': { 1297 'RenderbufferStorage': {
1280 'decoder_func': 'DoRenderbufferStorage', 1298 'decoder_func': 'DoRenderbufferStorage',
1281 'gl_test_func': 'glRenderbufferStorageEXT', 1299 'gl_test_func': 'glRenderbufferStorageEXT',
1282 'expectation': False, 1300 'expectation': False,
1283 }, 1301 },
1284 'RenderbufferStorageMultisampleEXT': { 1302 'RenderbufferStorageMultisampleEXT': {
1285 'decoder_func': 'DoRenderbufferStorageMultisample', 1303 'decoder_func': 'DoRenderbufferStorageMultisample',
1286 'gl_test_func': 'glRenderbufferStorageMultisampleEXT', 1304 'gl_test_func': 'glRenderbufferStorageMultisampleEXT',
1287 'expectation': False, 1305 'expectation': False,
1288 'unit_test': False, 1306 'unit_test': False,
(...skipping 4918 matching lines...) Expand 10 before | Expand all | Expand 10 after
6207 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") 6225 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h")
6208 6226
6209 if gen.errors > 0: 6227 if gen.errors > 0:
6210 print "%d errors" % gen.errors 6228 print "%d errors" % gen.errors
6211 return 1 6229 return 1
6212 return 0 6230 return 0
6213 6231
6214 6232
6215 if __name__ == '__main__': 6233 if __name__ == '__main__':
6216 sys.exit(main(sys.argv[1:])) 6234 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698