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

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

Issue 477623004: command_buffer: Support instanced path rendering in gpu command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-03-path-funcs
Patch Set: rebas Created 5 years, 3 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 'names': ['glCopyTexSubImage2D'], 233 'names': ['glCopyTexSubImage2D'],
234 'arguments': 234 'arguments':
235 'GLenum target, GLint level, GLint xoffset, ' 235 'GLenum target, GLint level, GLint xoffset, '
236 'GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height', }, 236 'GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height', },
237 { 'return_type': 'void', 237 { 'return_type': 'void',
238 'versions': [{ 'name': 'glCopyTexSubImage3D' }], 238 'versions': [{ 'name': 'glCopyTexSubImage3D' }],
239 'arguments': 239 'arguments':
240 'GLenum target, GLint level, GLint xoffset, GLint yoffset, ' 240 'GLenum target, GLint level, GLint xoffset, GLint yoffset, '
241 'GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height', }, 241 'GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height', },
242 { 'return_type': 'void', 242 { 'return_type': 'void',
243 'names': ['glCoverFillPathInstancedNV'],
244 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
245 'GLuint pathBase, GLenum coverMode, GLenum transformType, '
246 'const GLfloat* transformValues' },
247 { 'return_type': 'void',
243 'names': ['glCoverFillPathNV'], 248 'names': ['glCoverFillPathNV'],
244 'arguments': 'GLuint path, GLenum coverMode' }, 249 'arguments': 'GLuint path, GLenum coverMode' },
245 { 'return_type': 'void', 250 { 'return_type': 'void',
251 'names': ['glCoverStrokePathInstancedNV'],
252 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
253 'GLuint pathBase, GLenum coverMode, GLenum transformType, '
254 'const GLfloat* transformValues' },
255 { 'return_type': 'void',
246 'names': ['glCoverStrokePathNV'], 256 'names': ['glCoverStrokePathNV'],
247 'arguments': 'GLuint name, GLenum coverMode' }, 257 'arguments': 'GLuint name, GLenum coverMode' },
248 { 'return_type': 'GLuint', 258 { 'return_type': 'GLuint',
249 'names': ['glCreateProgram'], 259 'names': ['glCreateProgram'],
250 'arguments': 'void', }, 260 'arguments': 'void', },
251 { 'return_type': 'GLuint', 261 { 'return_type': 'GLuint',
252 'names': ['glCreateShader'], 262 'names': ['glCreateShader'],
253 'arguments': 'GLenum type', }, 263 'arguments': 'GLenum type', },
254 { 'return_type': 'void', 264 { 'return_type': 'void',
255 'names': ['glCullFace'], 265 'names': ['glCullFace'],
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 } else { 924 } else {
915 GL_SERVICE_LOG(" " << ii << ": ---\\n" << str[ii] << "\\n---"); 925 GL_SERVICE_LOG(" " << ii << ": ---\\n" << str[ii] << "\\n---");
916 } 926 }
917 } else { 927 } else {
918 GL_SERVICE_LOG(" " << ii << ": NULL"); 928 GL_SERVICE_LOG(" " << ii << ": NULL");
919 } 929 }
920 } 930 }
921 }); 931 });
922 """, }, 932 """, },
923 { 'return_type': 'void', 933 { 'return_type': 'void',
934 'names': ['glStencilFillPathInstancedNV'],
935 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
936 'GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, '
937 'const GLfloat* transformValues' },
938 { 'return_type': 'void',
924 'names': ['glStencilFillPathNV'], 939 'names': ['glStencilFillPathNV'],
925 'arguments': 'GLuint path, GLenum fillMode, GLuint mask' }, 940 'arguments': 'GLuint path, GLenum fillMode, GLuint mask' },
926 { 'return_type': 'void', 941 { 'return_type': 'void',
927 'names': ['glStencilFunc'], 942 'names': ['glStencilFunc'],
928 'arguments': 'GLenum func, GLint ref, GLuint mask', }, 943 'arguments': 'GLenum func, GLint ref, GLuint mask', },
929 { 'return_type': 'void', 944 { 'return_type': 'void',
930 'names': ['glStencilFuncSeparate'], 945 'names': ['glStencilFuncSeparate'],
931 'arguments': 'GLenum face, GLenum func, GLint ref, GLuint mask', }, 946 'arguments': 'GLenum face, GLenum func, GLint ref, GLuint mask', },
932 { 'return_type': 'void', 947 { 'return_type': 'void',
933 'names': ['glStencilMask'], 948 'names': ['glStencilMask'],
934 'arguments': 'GLuint mask', }, 949 'arguments': 'GLuint mask', },
935 { 'return_type': 'void', 950 { 'return_type': 'void',
936 'names': ['glStencilMaskSeparate'], 951 'names': ['glStencilMaskSeparate'],
937 'arguments': 'GLenum face, GLuint mask', }, 952 'arguments': 'GLenum face, GLuint mask', },
938 { 'return_type': 'void', 953 { 'return_type': 'void',
939 'names': ['glStencilOp'], 954 'names': ['glStencilOp'],
940 'arguments': 'GLenum fail, GLenum zfail, GLenum zpass', }, 955 'arguments': 'GLenum fail, GLenum zfail, GLenum zpass', },
941 { 'return_type': 'void', 956 { 'return_type': 'void',
942 'names': ['glStencilOpSeparate'], 957 'names': ['glStencilOpSeparate'],
943 'arguments': 'GLenum face, GLenum fail, GLenum zfail, GLenum zpass', }, 958 'arguments': 'GLenum face, GLenum fail, GLenum zfail, GLenum zpass', },
944 { 'return_type': 'void', 959 { 'return_type': 'void',
960 'names': ['glStencilStrokePathInstancedNV'],
961 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
962 'GLuint pathBase, GLint ref, GLuint mask, GLenum transformType, '
963 'const GLfloat* transformValues' },
964 { 'return_type': 'void',
945 'names': ['glStencilStrokePathNV'], 965 'names': ['glStencilStrokePathNV'],
946 'arguments': 'GLuint path, GLint reference, GLuint mask' }, 966 'arguments': 'GLuint path, GLint reference, GLuint mask' },
947 { 'return_type': 'void', 967 { 'return_type': 'void',
968 'names': ['glStencilThenCoverFillPathInstancedNV'],
969 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
970 'GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, '
971 'GLenum transformType, const GLfloat* transformValues',
972 'is_optional': True, },
973 { 'return_type': 'void',
948 'names': ['glStencilThenCoverFillPathNV'], 974 'names': ['glStencilThenCoverFillPathNV'],
949 'arguments': 'GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode', 975 'arguments': 'GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode',
950 'is_optional': True, }, 976 'is_optional': True, },
951 { 'return_type': 'void', 977 { 'return_type': 'void',
978 'names': ['glStencilThenCoverStrokePathInstancedNV'],
979 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
980 'GLuint pathBase, GLint ref, GLuint mask, GLenum coverMode, '
981 'GLenum transformType, const GLfloat* transformValues',
982 'is_optional': True, },
983 { 'return_type': 'void',
952 'names': ['glStencilThenCoverStrokePathNV'], 984 'names': ['glStencilThenCoverStrokePathNV'],
953 'arguments': 'GLuint path, GLint reference, GLuint mask, GLenum coverMode', 985 'arguments': 'GLuint path, GLint reference, GLuint mask, GLenum coverMode',
954 'is_optional': True, }, 986 'is_optional': True, },
955 { 'return_type': 'GLboolean', 987 { 'return_type': 'GLboolean',
956 'known_as': 'glTestFenceAPPLE', 988 'known_as': 'glTestFenceAPPLE',
957 'versions': [{ 'name': 'glTestFenceAPPLE', 989 'versions': [{ 'name': 'glTestFenceAPPLE',
958 'extensions': ['GL_APPLE_fence'] }], 990 'extensions': ['GL_APPLE_fence'] }],
959 'arguments': 'GLuint fence', }, 991 'arguments': 'GLuint fence', },
960 { 'return_type': 'GLboolean', 992 { 'return_type': 'GLboolean',
961 'names': ['glTestFenceNV'], 993 'names': ['glTestFenceNV'],
(...skipping 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 'gl_enums_implementation_autogen.h'), 2711 'gl_enums_implementation_autogen.h'),
2680 'wb') 2712 'wb')
2681 GenerateEnumUtils(header_file, enum_header_filenames) 2713 GenerateEnumUtils(header_file, enum_header_filenames)
2682 header_file.close() 2714 header_file.close()
2683 ClangFormat(header_file.name) 2715 ClangFormat(header_file.name)
2684 return 0 2716 return 0
2685 2717
2686 2718
2687 if __name__ == '__main__': 2719 if __name__ == '__main__':
2688 sys.exit(main(sys.argv[1:])) 2720 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698