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

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

Issue 169403005: command_buffer: Implement path rendering functions for CHROMIUM_path_rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nv-pr-02-texgen
Patch Set: rebase and cleanup ids 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 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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 'arguments': 'GLenum matrixMode, const GLfloat* m' }, 861 'arguments': 'GLenum matrixMode, const GLfloat* m' },
862 { 'return_type': 'void', 862 { 'return_type': 'void',
863 'known_as': 'glMatrixLoadIdentityEXT', 863 'known_as': 'glMatrixLoadIdentityEXT',
864 'versions': [{ 'name': 'glMatrixLoadIdentityEXT', 864 'versions': [{ 'name': 'glMatrixLoadIdentityEXT',
865 'gl_versions': ['gl4'], 865 'gl_versions': ['gl4'],
866 'extensions': ['GL_EXT_direct_state_access'] }, 866 'extensions': ['GL_EXT_direct_state_access'] },
867 { 'name': 'glMatrixLoadIdentityEXT', 867 { 'name': 'glMatrixLoadIdentityEXT',
868 'gl_versions': ['es3'], 868 'gl_versions': ['es3'],
869 'extensions': ['GL_NV_path_rendering'] }], 869 'extensions': ['GL_NV_path_rendering'] }],
870 'arguments': 'GLenum matrixMode' }, 870 'arguments': 'GLenum matrixMode' },
871 { 'return_type': 'GLuint',
872 'known_as': 'glGenPathsNV',
873 'versions': [{ 'name': 'glGenPathsNV',
874 'gl_versions': ['gl4', 'es3'],
875 'extensions': ['GL_NV_path_rendering'] }],
876 'arguments': 'GLsizei range' },
877 { 'return_type': 'void',
878 'known_as': 'glDeletePathsNV',
879 'versions': [{ 'name': 'glDeletePathsNV',
880 'gl_versions': ['gl4', 'es3'],
881 'extensions': ['GL_NV_path_rendering'] }],
882 'arguments': 'GLuint path, GLsizei range' },
883 { 'return_type': 'GLboolean',
884 'known_as': 'glIsPathNV',
885 'versions': [{ 'name': 'glIsPathNV',
886 'gl_versions': ['gl4', 'es3'],
887 'extensions': ['GL_NV_path_rendering'] }],
888 'arguments': 'GLuint path' },
889 { 'return_type': 'void',
890 'known_as': 'glPathCommandsNV',
891 'versions': [{ 'name': 'glPathCommandsNV',
892 'gl_versions': ['gl4', 'es3'],
893 'extensions': ['GL_NV_path_rendering'] }],
894 'arguments': 'GLuint path, GLsizei numCommands, const GLubyte* commands, '
895 'GLsizei numCoords, GLenum coordType, const GLvoid* coords' },
896 { 'return_type': 'void',
897 'known_as': 'glPathParameteriNV',
898 'versions': [{ 'name': 'glPathParameteriNV',
899 'gl_versions': ['gl4', 'es3'],
900 'extensions': ['GL_NV_path_rendering'] }],
901 'arguments': 'GLuint path, GLenum pname, GLint value' },
902 { 'return_type': 'void',
903 'known_as': 'glPathParameterfNV',
904 'versions': [{ 'name': 'glPathParameterfNV',
905 'gl_versions': ['gl4', 'es3'],
906 'extensions': ['GL_NV_path_rendering'] }],
907 'arguments': 'GLuint path, GLenum pname, GLfloat value' },
908 { 'return_type': 'void',
909 'known_as': 'glPathStencilFuncNV',
910 'versions': [{ 'name': 'glPathStencilFuncNV',
911 'gl_versions': ['gl4', 'es3'],
912 'extensions': ['GL_NV_path_rendering'] }],
913 'arguments': 'GLenum func, GLint ref, GLuint mask' },
914 { 'return_type': 'void',
915 'known_as': 'glStencilFillPathNV',
916 'versions': [{ 'name': 'glStencilFillPathNV',
917 'gl_versions': ['gl4', 'es3'],
918 'extensions': ['GL_NV_path_rendering'] }],
919 'arguments': 'GLuint path, GLenum fillMode, GLuint mask' },
920 { 'return_type': 'void',
921 'known_as': 'glStencilStrokePathNV',
922 'versions': [{ 'name': 'glStencilStrokePathNV',
923 'gl_versions': ['gl4', 'es3'],
924 'extensions': ['GL_NV_path_rendering'] }],
925 'arguments': 'GLuint path, GLint reference, GLuint mask' },
926 { 'return_type': 'void',
927 'known_as': 'glPathTexGenNV',
928 'versions': [{ 'name': 'glPathTexGenNV',
929 'gl_versions': ['gl4', 'es3'],
930 'extensions': ['GL_NV_path_rendering'] }],
931 'arguments': 'GLenum texCoordSet, GLenum genMode, '
932 'GLint components, const GLfloat* coeffs', },
933 { 'return_type': 'void',
934 'known_as': 'glCoverFillPathNV',
935 'versions': [{ 'name': 'glCoverFillPathNV',
936 'gl_versions': ['gl4', 'es3'],
937 'extensions': ['GL_NV_path_rendering'] }],
938 'arguments': 'GLuint path, GLenum coverMode' },
939 { 'return_type': 'void',
940 'known_as': 'glCoverStrokePathNV',
941 'versions': [{ 'name': 'glCoverStrokePathNV',
942 'gl_versions': ['gl4', 'es3'],
943 'extensions': ['GL_NV_path_rendering'] }],
944 'arguments': 'GLuint name, GLenum coverMode' },
945 { 'return_type': 'void',
946 'known_as': 'glStencilThenCoverFillPathNV',
947 'versions': [{ 'name': 'glStencilThenCoverFillPathNV',
948 'gl_versions': ['gl4', 'es3'],
949 'extensions': ['GL_NV_path_rendering'] }],
950 'arguments': 'GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode' },
951 { 'return_type': 'void',
952 'known_as': 'glStencilThenCoverStrokePathNV',
953 'versions': [{ 'name': 'glStencilThenCoverStrokePathNV',
954 'gl_versions': ['gl4', 'es3'],
955 'extensions': ['GL_NV_path_rendering'] }],
956 'arguments': 'GLuint path, GLint reference, GLuint mask, GLenum coverMode' },
871 ] 957 ]
872 958
873 OSMESA_FUNCTIONS = [ 959 OSMESA_FUNCTIONS = [
874 { 'return_type': 'OSMesaContext', 960 { 'return_type': 'OSMesaContext',
875 'names': ['OSMesaCreateContext'], 961 'names': ['OSMesaCreateContext'],
876 'arguments': 'GLenum format, OSMesaContext sharelist', }, 962 'arguments': 'GLenum format, OSMesaContext sharelist', },
877 { 'return_type': 'OSMesaContext', 963 { 'return_type': 'OSMesaContext',
878 'names': ['OSMesaCreateContextExt'], 964 'names': ['OSMesaCreateContextExt'],
879 'arguments': 965 'arguments':
880 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, ' 966 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, '
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 2165
2080 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2166 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2081 'wb') 2167 'wb')
2082 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2168 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2083 source_file.close() 2169 source_file.close()
2084 return 0 2170 return 0
2085 2171
2086 2172
2087 if __name__ == '__main__': 2173 if __name__ == '__main__':
2088 sys.exit(main(sys.argv[1:])) 2174 sys.exit(main(sys.argv[1:]))
OLDNEW
« gpu/GLES2/gl2chromium.h ('K') | « ppapi/c/ppb_opengles2.h ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698