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

Side by Side Diff: ui/gl/generate_bindings.py

Issue 1822643002: [Command buffer] Enable primitive restart for WebGL 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix coding style and update webgl2_conformance_expectations.py Created 4 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
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 GL/GLES extension wrangler.""" 6 """code generator for GL/GLES extension wrangler."""
7 7
8 import optparse 8 import optparse
9 import os 9 import os
10 import collections 10 import collections
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 { 'return_type': 'void', 873 { 'return_type': 'void',
874 'names': ['glPointParameteri'], 874 'names': ['glPointParameteri'],
875 'arguments': 'GLenum pname, GLint param', }, 875 'arguments': 'GLenum pname, GLint param', },
876 { 'return_type': 'void', 876 { 'return_type': 'void',
877 'names': ['glPolygonOffset'], 877 'names': ['glPolygonOffset'],
878 'arguments': 'GLfloat factor, GLfloat units', }, 878 'arguments': 'GLfloat factor, GLfloat units', },
879 { 'return_type': 'void', 879 { 'return_type': 'void',
880 'names': ['glPopGroupMarkerEXT'], 880 'names': ['glPopGroupMarkerEXT'],
881 'arguments': 'void', }, 881 'arguments': 'void', },
882 { 'return_type': 'void', 882 { 'return_type': 'void',
883 'names': ['glPrimitiveRestartIndex'],
884 'arguments': 'GLuint index', },
885 { 'return_type': 'void',
883 'known_as': 'glProgramBinary', 886 'known_as': 'glProgramBinary',
884 'versions': [{ 'name': 'glProgramBinaryOES' }, 887 'versions': [{ 'name': 'glProgramBinaryOES' },
885 { 'name': 'glProgramBinary', 888 { 'name': 'glProgramBinary',
886 'extensions': ['GL_ARB_get_program_binary'] }], 889 'extensions': ['GL_ARB_get_program_binary'] }],
887 'arguments': 'GLuint program, GLenum binaryFormat, ' 890 'arguments': 'GLuint program, GLenum binaryFormat, '
888 'const GLvoid* binary, GLsizei length' }, 891 'const GLvoid* binary, GLsizei length' },
889 { 'return_type': 'void', 892 { 'return_type': 'void',
890 'versions': [{ 'name': 'glProgramParameteri', 893 'versions': [{ 'name': 'glProgramParameteri',
891 'extensions': ['GL_ARB_get_program_binary'] }], 894 'extensions': ['GL_ARB_get_program_binary'] }],
892 'arguments': 'GLuint program, GLenum pname, GLint value' }, 895 'arguments': 'GLuint program, GLenum pname, GLint value' },
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after
2779 'gl_enums_implementation_autogen.h'), 2782 'gl_enums_implementation_autogen.h'),
2780 'wb') 2783 'wb')
2781 GenerateEnumUtils(header_file, enum_header_filenames) 2784 GenerateEnumUtils(header_file, enum_header_filenames)
2782 header_file.close() 2785 header_file.close()
2783 ClangFormat(header_file.name) 2786 ClangFormat(header_file.name)
2784 return 0 2787 return 0
2785 2788
2786 2789
2787 if __name__ == '__main__': 2790 if __name__ == '__main__':
2788 sys.exit(main(sys.argv[1:])) 2791 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp ('k') | ui/gl/gl_bindings_api_autogen_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698