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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « ui/gl/egl_util.h ('k') | ui/gl/gl.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 'arguments': 'GLenum target, GLint level, GLenum pname, GLint* params', }, 635 'arguments': 'GLenum target, GLint level, GLenum pname, GLint* params', },
636 { 'return_type': 'void', 636 { 'return_type': 'void',
637 'names': ['glGetTexParameterfv'], 637 'names': ['glGetTexParameterfv'],
638 'arguments': 'GLenum target, GLenum pname, GLfloat* params', }, 638 'arguments': 'GLenum target, GLenum pname, GLfloat* params', },
639 { 'return_type': 'void', 639 { 'return_type': 'void',
640 'names': ['glGetTexParameteriv'], 640 'names': ['glGetTexParameteriv'],
641 'arguments': 'GLenum target, GLenum pname, GLint* params', }, 641 'arguments': 'GLenum target, GLenum pname, GLint* params', },
642 { 'return_type': 'void', 642 { 'return_type': 'void',
643 'versions': [{ 'name': 'glGetTransformFeedbackVarying' }], 643 'versions': [{ 'name': 'glGetTransformFeedbackVarying' }],
644 'arguments': 'GLuint program, GLuint index, GLsizei bufSize, ' 644 'arguments': 'GLuint program, GLuint index, GLsizei bufSize, '
645 'GLsizei* length, GLenum* type, char* name', }, 645 'GLsizei* length, GLsizei* size, GLenum* type, char* name', },
646 { 'return_type': 'void', 646 { 'return_type': 'void',
647 'names': ['glGetTranslatedShaderSourceANGLE'], 647 'names': ['glGetTranslatedShaderSourceANGLE'],
648 'arguments': 648 'arguments':
649 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', }, 649 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', },
650 { 'return_type': 'GLuint', 650 { 'return_type': 'GLuint',
651 'versions': [{ 'name': 'glGetUniformBlockIndex' }], 651 'versions': [{ 'name': 'glGetUniformBlockIndex' }],
652 'arguments': 'GLuint program, const char* uniformBlockName', }, 652 'arguments': 'GLuint program, const char* uniformBlockName', },
653 { 'return_type': 'void', 653 { 'return_type': 'void',
654 'names': ['glGetUniformfv'], 654 'names': ['glGetUniformfv'],
655 'arguments': 'GLuint program, GLint location, GLfloat* params', }, 655 'arguments': 'GLuint program, GLint location, GLfloat* params', },
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after
2550 'gl_enums_implementation_autogen.h'), 2550 'gl_enums_implementation_autogen.h'),
2551 'wb') 2551 'wb')
2552 GenerateEnumUtils(header_file, enum_header_filenames) 2552 GenerateEnumUtils(header_file, enum_header_filenames)
2553 header_file.close() 2553 header_file.close()
2554 ClangFormat(header_file.name) 2554 ClangFormat(header_file.name)
2555 return 0 2555 return 0
2556 2556
2557 2557
2558 if __name__ == '__main__': 2558 if __name__ == '__main__':
2559 sys.exit(main(sys.argv[1:])) 2559 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « ui/gl/egl_util.h ('k') | ui/gl/gl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698