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

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

Issue 1688163002: command_buffer: Implement glGetStringi for GL ES 3.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@command-buffer-generator-int-types
Patch Set: rebase Created 4 years, 10 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 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 'type': 'GLenum', 1445 'type': 'GLenum',
1446 'is_complete': True, 1446 'is_complete': True,
1447 'valid': [ 1447 'valid': [
1448 'GL_VENDOR', 1448 'GL_VENDOR',
1449 'GL_RENDERER', 1449 'GL_RENDERER',
1450 'GL_VERSION', 1450 'GL_VERSION',
1451 'GL_SHADING_LANGUAGE_VERSION', 1451 'GL_SHADING_LANGUAGE_VERSION',
1452 'GL_EXTENSIONS', 1452 'GL_EXTENSIONS',
1453 ], 1453 ],
1454 }, 1454 },
1455 'IndexedStringType': {
1456 'type': 'GLenum',
1457 'is_complete': True,
1458 'valid': [
1459 'GL_EXTENSIONS',
1460 ],
1461 },
1462
1455 'TextureParameter': { 1463 'TextureParameter': {
1456 'type': 'GLenum', 1464 'type': 'GLenum',
1457 'valid': [ 1465 'valid': [
1458 'GL_TEXTURE_MAG_FILTER', 1466 'GL_TEXTURE_MAG_FILTER',
1459 'GL_TEXTURE_MIN_FILTER', 1467 'GL_TEXTURE_MIN_FILTER',
1460 'GL_TEXTURE_WRAP_S', 1468 'GL_TEXTURE_WRAP_S',
1461 'GL_TEXTURE_WRAP_T', 1469 'GL_TEXTURE_WRAP_T',
1462 ], 1470 ],
1463 'valid_es3': [ 1471 'valid_es3': [
1464 'GL_TEXTURE_BASE_LEVEL', 1472 'GL_TEXTURE_BASE_LEVEL',
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
3223 'get_len_func': 'DoGetShaderiv', 3231 'get_len_func': 'DoGetShaderiv',
3224 'get_len_enum': 'GL_SHADER_SOURCE_LENGTH', 3232 'get_len_enum': 'GL_SHADER_SOURCE_LENGTH',
3225 'unit_test': False, 3233 'unit_test': False,
3226 'client_test': False, 3234 'client_test': False,
3227 }, 3235 },
3228 'GetString': { 3236 'GetString': {
3229 'type': 'Custom', 3237 'type': 'Custom',
3230 'client_test': False, 3238 'client_test': False,
3231 'cmd_args': 'GLenumStringType name, uint32_t bucket_id', 3239 'cmd_args': 'GLenumStringType name, uint32_t bucket_id',
3232 }, 3240 },
3241 'GetStringi': {
3242 'type': 'Custom',
3243 'client_test': False,
3244 'gen_cmd': False,
3245 'unsafe': True,
3246 },
3233 'GetSynciv': { 3247 'GetSynciv': {
3234 'type': 'GETn', 3248 'type': 'GETn',
3235 'cmd_args': 'GLuint sync, GLenumSyncParameter pname, void* values', 3249 'cmd_args': 'GLuint sync, GLenumSyncParameter pname, void* values',
3236 'result': ['SizedResult<GLint>'], 3250 'result': ['SizedResult<GLint>'],
3237 'id_mapping': ['Sync'], 3251 'id_mapping': ['Sync'],
3238 'unsafe': True, 3252 'unsafe': True,
3239 }, 3253 },
3240 'GetTexParameterfv': { 3254 'GetTexParameterfv': {
3241 'type': 'GETn', 3255 'type': 'GETn',
3242 'decoder_func': 'DoGetTexParameterfv', 3256 'decoder_func': 'DoGetTexParameterfv',
(...skipping 8285 matching lines...) Expand 10 before | Expand all | Expand 10 after
11528 Format(gen.generated_cpp_filenames) 11542 Format(gen.generated_cpp_filenames)
11529 11543
11530 if gen.errors > 0: 11544 if gen.errors > 0:
11531 print "%d errors" % gen.errors 11545 print "%d errors" % gen.errors
11532 return 1 11546 return 1
11533 return 0 11547 return 0
11534 11548
11535 11549
11536 if __name__ == '__main__': 11550 if __name__ == '__main__':
11537 sys.exit(main(sys.argv[1:])) 11551 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