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

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

Issue 659903002: Add subscribeUniform extension pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: V2 API Created 6 years, 2 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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 'GL_RGBA', 1188 'GL_RGBA',
1189 ], 1189 ],
1190 }, 1190 },
1191 'ImageUsage': { 1191 'ImageUsage': {
1192 'type': 'GLenum', 1192 'type': 'GLenum',
1193 'valid': [ 1193 'valid': [
1194 'GL_MAP_CHROMIUM', 1194 'GL_MAP_CHROMIUM',
1195 'GL_SCANOUT_CHROMIUM' 1195 'GL_SCANOUT_CHROMIUM'
1196 ], 1196 ],
1197 }, 1197 },
1198 'UniformSubscriptionTarget': {
1199 'type': 'GLenum',
1200 'valid': [
1201 'GL_MOUSE_POSITION',
1202 ],
1203 },
1198 'VertexAttribType': { 1204 'VertexAttribType': {
1199 'type': 'GLenum', 1205 'type': 'GLenum',
1200 'valid': [ 1206 'valid': [
1201 'GL_BYTE', 1207 'GL_BYTE',
1202 'GL_UNSIGNED_BYTE', 1208 'GL_UNSIGNED_BYTE',
1203 'GL_SHORT', 1209 'GL_SHORT',
1204 'GL_UNSIGNED_SHORT', 1210 'GL_UNSIGNED_SHORT',
1205 # 'GL_FIXED', // This is not available on Desktop GL. 1211 # 'GL_FIXED', // This is not available on Desktop GL.
1206 'GL_FLOAT', 1212 'GL_FLOAT',
1207 ], 1213 ],
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 'CreateAndConsumeTextureCHROMIUM': { 1447 'CreateAndConsumeTextureCHROMIUM': {
1442 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', 1448 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM',
1443 'impl_func': False, 1449 'impl_func': False,
1444 'type': 'HandWritten', 1450 'type': 'HandWritten',
1445 'data_transfer_methods': ['immediate'], 1451 'data_transfer_methods': ['immediate'],
1446 'unit_test': False, 1452 'unit_test': False,
1447 'client_test': False, 1453 'client_test': False,
1448 'extension': "CHROMIUM_texture_mailbox", 1454 'extension': "CHROMIUM_texture_mailbox",
1449 'chromium': True, 1455 'chromium': True,
1450 }, 1456 },
1457 'SubscribeUniformCHROMIUM': {
1458 'decoder_func': 'DoSubscribeUniformCHROMIUM',
1459 'unit_test': False,
1460 'extension': True,
1461 'chromium': True,
1462 },
1463 'PopulateSubscribedUniformsCHROMIUM': {
1464 'decoder_func': 'DoPopulateSubscribedUniformsCHROMIUM',
1465 'impl_func': False,
1466 'unit_test': False,
1467 'client_test': False,
1468 'extension': True,
1469 'chromium': True,
1470 },
1451 'ClearStencil': { 1471 'ClearStencil': {
1452 'type': 'StateSet', 1472 'type': 'StateSet',
1453 'state': 'ClearStencil', 1473 'state': 'ClearStencil',
1454 }, 1474 },
1455 'EnableFeatureCHROMIUM': { 1475 'EnableFeatureCHROMIUM': {
1456 'type': 'Custom', 1476 'type': 'Custom',
1457 'data_transfer_methods': ['shm'], 1477 'data_transfer_methods': ['shm'],
1458 'decoder_func': 'DoEnableFeatureCHROMIUM', 1478 'decoder_func': 'DoEnableFeatureCHROMIUM',
1459 'expectation': False, 1479 'expectation': False,
1460 'cmd_args': 'GLuint bucket_id, GLint* result', 1480 'cmd_args': 'GLuint bucket_id, GLint* result',
(...skipping 7165 matching lines...) Expand 10 before | Expand all | Expand 10 after
8626 Format(gen.generated_cpp_filenames) 8646 Format(gen.generated_cpp_filenames)
8627 8647
8628 if gen.errors > 0: 8648 if gen.errors > 0:
8629 print "%d errors" % gen.errors 8649 print "%d errors" % gen.errors
8630 return 1 8650 return 1
8631 return 0 8651 return 0
8632 8652
8633 8653
8634 if __name__ == '__main__': 8654 if __name__ == '__main__':
8635 sys.exit(main(sys.argv[1:])) 8655 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698