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

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

Issue 1559203003: Add GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added enum, removed count parameter. 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
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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 'invalid': [ 672 'invalid': [
673 'GL_LINEAR_MIPMAP_LINEAR', 673 'GL_LINEAR_MIPMAP_LINEAR',
674 ], 674 ],
675 }, 675 },
676 'CoverageModulationComponents': { 676 'CoverageModulationComponents': {
677 'type': 'GLenum', 677 'type': 'GLenum',
678 'valid': [ 678 'valid': [
679 'GL_RGB', 'GL_RGBA', 'GL_ALPHA', 'GL_NONE' 679 'GL_RGB', 'GL_RGBA', 'GL_ALPHA', 'GL_NONE'
680 ], 680 ],
681 }, 681 },
682 'CustomMatrixParameter': {
683 'type': 'GLenum',
684 'valid': [
685 'GL_CUSTOM_MATRIX_STREAM_TEXTURE_CHROMIUM',
686 ],
687 },
682 'FrameBufferTarget': { 688 'FrameBufferTarget': {
683 'type': 'GLenum', 689 'type': 'GLenum',
684 'valid': [ 690 'valid': [
685 'GL_FRAMEBUFFER', 691 'GL_FRAMEBUFFER',
686 ], 692 ],
687 'valid_es3': [ 693 'valid_es3': [
688 'GL_DRAW_FRAMEBUFFER' , 694 'GL_DRAW_FRAMEBUFFER' ,
689 'GL_READ_FRAMEBUFFER' , 695 'GL_READ_FRAMEBUFFER' ,
690 ], 696 ],
691 'invalid': [ 697 'invalid': [
(...skipping 3192 matching lines...) Expand 10 before | Expand all | Expand 10 after
3884 'count': 12, 3890 'count': 12,
3885 'decoder_func': 'DoUniformMatrix3x4fv', 3891 'decoder_func': 'DoUniformMatrix3x4fv',
3886 'unsafe': True, 3892 'unsafe': True,
3887 }, 3893 },
3888 'UniformMatrix4fv': { 3894 'UniformMatrix4fv': {
3889 'type': 'PUTn', 3895 'type': 'PUTn',
3890 'count': 16, 3896 'count': 16,
3891 'decoder_func': 'DoUniformMatrix4fv', 3897 'decoder_func': 'DoUniformMatrix4fv',
3892 'unit_test': False, 3898 'unit_test': False,
3893 }, 3899 },
3900 'UniformMatrix4fvWithCustomMatrixCHROMIUM': {
3901 'type': 'PUT',
3902 'count': 16,
3903 'decoder_func': 'DoUniformMatrix4fvWithCustomMatrixCHROMIUM',
3904 'extension': "CHROMIUM_uniform_stream_texture_matrix",
3905 'unit_test': False,
3906 'client_test': False,
3907 },
3894 'UniformMatrix4x2fv': { 3908 'UniformMatrix4x2fv': {
3895 'type': 'PUTn', 3909 'type': 'PUTn',
3896 'count': 8, 3910 'count': 8,
3897 'decoder_func': 'DoUniformMatrix4x2fv', 3911 'decoder_func': 'DoUniformMatrix4x2fv',
3898 'unsafe': True, 3912 'unsafe': True,
3899 }, 3913 },
3900 'UniformMatrix4x3fv': { 3914 'UniformMatrix4x3fv': {
3901 'type': 'PUTn', 3915 'type': 'PUTn',
3902 'count': 12, 3916 'count': 12,
3903 'decoder_func': 'DoUniformMatrix4x3fv', 3917 'decoder_func': 'DoUniformMatrix4x3fv',
(...skipping 7624 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

Powered by Google App Engine
This is Rietveld 408576698