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

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: fix msvc signedness warning in an unittest Created 5 years, 1 month 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 'names': ['glCopyTexSubImage2D'], 238 'names': ['glCopyTexSubImage2D'],
239 'arguments': 239 'arguments':
240 'GLenum target, GLint level, GLint xoffset, ' 240 'GLenum target, GLint level, GLint xoffset, '
241 'GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height', }, 241 'GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height', },
242 { 'return_type': 'void', 242 { 'return_type': 'void',
243 'versions': [{ 'name': 'glCopyTexSubImage3D' }], 243 'versions': [{ 'name': 'glCopyTexSubImage3D' }],
244 'arguments': 244 'arguments':
245 'GLenum target, GLint level, GLint xoffset, GLint yoffset, ' 245 'GLenum target, GLint level, GLint xoffset, GLint yoffset, '
246 'GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height', }, 246 'GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height', },
247 { 'return_type': 'void', 247 { 'return_type': 'void',
248 'names': ['glCoverFillPathInstancedNV'],
249 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
250 'GLuint pathBase, GLenum coverMode, GLenum transformType, '
251 'const GLfloat* transformValues' },
252 { 'return_type': 'void',
248 'names': ['glCoverFillPathNV'], 253 'names': ['glCoverFillPathNV'],
249 'arguments': 'GLuint path, GLenum coverMode' }, 254 'arguments': 'GLuint path, GLenum coverMode' },
250 { 'return_type': 'void', 255 { 'return_type': 'void',
256 'names': ['glCoverStrokePathInstancedNV'],
257 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
258 'GLuint pathBase, GLenum coverMode, GLenum transformType, '
259 'const GLfloat* transformValues' },
260 { 'return_type': 'void',
251 'names': ['glCoverStrokePathNV'], 261 'names': ['glCoverStrokePathNV'],
252 'arguments': 'GLuint name, GLenum coverMode' }, 262 'arguments': 'GLuint name, GLenum coverMode' },
253 { 'return_type': 'GLuint', 263 { 'return_type': 'GLuint',
254 'names': ['glCreateProgram'], 264 'names': ['glCreateProgram'],
255 'arguments': 'void', }, 265 'arguments': 'void', },
256 { 'return_type': 'GLuint', 266 { 'return_type': 'GLuint',
257 'names': ['glCreateShader'], 267 'names': ['glCreateShader'],
258 'arguments': 'GLenum type', }, 268 'arguments': 'GLenum type', },
259 { 'return_type': 'void', 269 { 'return_type': 'void',
260 'names': ['glCullFace'], 270 'names': ['glCullFace'],
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 } else { 929 } else {
920 GL_SERVICE_LOG(" " << ii << ": ---\\n" << str[ii] << "\\n---"); 930 GL_SERVICE_LOG(" " << ii << ": ---\\n" << str[ii] << "\\n---");
921 } 931 }
922 } else { 932 } else {
923 GL_SERVICE_LOG(" " << ii << ": NULL"); 933 GL_SERVICE_LOG(" " << ii << ": NULL");
924 } 934 }
925 } 935 }
926 }); 936 });
927 """, }, 937 """, },
928 { 'return_type': 'void', 938 { 'return_type': 'void',
939 'names': ['glStencilFillPathInstancedNV'],
940 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
941 'GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, '
942 'const GLfloat* transformValues' },
943 { 'return_type': 'void',
929 'names': ['glStencilFillPathNV'], 944 'names': ['glStencilFillPathNV'],
930 'arguments': 'GLuint path, GLenum fillMode, GLuint mask' }, 945 'arguments': 'GLuint path, GLenum fillMode, GLuint mask' },
931 { 'return_type': 'void', 946 { 'return_type': 'void',
932 'names': ['glStencilFunc'], 947 'names': ['glStencilFunc'],
933 'arguments': 'GLenum func, GLint ref, GLuint mask', }, 948 'arguments': 'GLenum func, GLint ref, GLuint mask', },
934 { 'return_type': 'void', 949 { 'return_type': 'void',
935 'names': ['glStencilFuncSeparate'], 950 'names': ['glStencilFuncSeparate'],
936 'arguments': 'GLenum face, GLenum func, GLint ref, GLuint mask', }, 951 'arguments': 'GLenum face, GLenum func, GLint ref, GLuint mask', },
937 { 'return_type': 'void', 952 { 'return_type': 'void',
938 'names': ['glStencilMask'], 953 'names': ['glStencilMask'],
939 'arguments': 'GLuint mask', }, 954 'arguments': 'GLuint mask', },
940 { 'return_type': 'void', 955 { 'return_type': 'void',
941 'names': ['glStencilMaskSeparate'], 956 'names': ['glStencilMaskSeparate'],
942 'arguments': 'GLenum face, GLuint mask', }, 957 'arguments': 'GLenum face, GLuint mask', },
943 { 'return_type': 'void', 958 { 'return_type': 'void',
944 'names': ['glStencilOp'], 959 'names': ['glStencilOp'],
945 'arguments': 'GLenum fail, GLenum zfail, GLenum zpass', }, 960 'arguments': 'GLenum fail, GLenum zfail, GLenum zpass', },
946 { 'return_type': 'void', 961 { 'return_type': 'void',
947 'names': ['glStencilOpSeparate'], 962 'names': ['glStencilOpSeparate'],
948 'arguments': 'GLenum face, GLenum fail, GLenum zfail, GLenum zpass', }, 963 'arguments': 'GLenum face, GLenum fail, GLenum zfail, GLenum zpass', },
949 { 'return_type': 'void', 964 { 'return_type': 'void',
965 'names': ['glStencilStrokePathInstancedNV'],
966 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
967 'GLuint pathBase, GLint ref, GLuint mask, GLenum transformType, '
968 'const GLfloat* transformValues' },
969 { 'return_type': 'void',
950 'names': ['glStencilStrokePathNV'], 970 'names': ['glStencilStrokePathNV'],
951 'arguments': 'GLuint path, GLint reference, GLuint mask' }, 971 'arguments': 'GLuint path, GLint reference, GLuint mask' },
952 { 'return_type': 'void', 972 { 'return_type': 'void',
973 'names': ['glStencilThenCoverFillPathInstancedNV'],
974 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
975 'GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, '
976 'GLenum transformType, const GLfloat* transformValues',
977 'is_optional': True, },
978 { 'return_type': 'void',
953 'names': ['glStencilThenCoverFillPathNV'], 979 'names': ['glStencilThenCoverFillPathNV'],
954 'arguments': 'GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode', 980 'arguments': 'GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode',
955 'is_optional': True, }, 981 'is_optional': True, },
956 { 'return_type': 'void', 982 { 'return_type': 'void',
983 'names': ['glStencilThenCoverStrokePathInstancedNV'],
984 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
985 'GLuint pathBase, GLint ref, GLuint mask, GLenum coverMode, '
986 'GLenum transformType, const GLfloat* transformValues',
987 'is_optional': True, },
988 { 'return_type': 'void',
957 'names': ['glStencilThenCoverStrokePathNV'], 989 'names': ['glStencilThenCoverStrokePathNV'],
958 'arguments': 'GLuint path, GLint reference, GLuint mask, GLenum coverMode', 990 'arguments': 'GLuint path, GLint reference, GLuint mask, GLenum coverMode',
959 'is_optional': True, }, 991 'is_optional': True, },
960 { 'return_type': 'GLboolean', 992 { 'return_type': 'GLboolean',
961 'known_as': 'glTestFenceAPPLE', 993 'known_as': 'glTestFenceAPPLE',
962 'versions': [{ 'name': 'glTestFenceAPPLE', 994 'versions': [{ 'name': 'glTestFenceAPPLE',
963 'extensions': ['GL_APPLE_fence'] }], 995 'extensions': ['GL_APPLE_fence'] }],
964 'arguments': 'GLuint fence', }, 996 'arguments': 'GLuint fence', },
965 { 'return_type': 'GLboolean', 997 { 'return_type': 'GLboolean',
966 'names': ['glTestFenceNV'], 998 'names': ['glTestFenceNV'],
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after
2688 'gl_enums_implementation_autogen.h'), 2720 'gl_enums_implementation_autogen.h'),
2689 'wb') 2721 'wb')
2690 GenerateEnumUtils(header_file, enum_header_filenames) 2722 GenerateEnumUtils(header_file, enum_header_filenames)
2691 header_file.close() 2723 header_file.close()
2692 ClangFormat(header_file.name) 2724 ClangFormat(header_file.name)
2693 return 0 2725 return 0
2694 2726
2695 2727
2696 if __name__ == '__main__': 2728 if __name__ == '__main__':
2697 sys.exit(main(sys.argv[1:])) 2729 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « third_party/mojo/src/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698