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

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

Issue 940523003: Make gl_bindings_skia_in_process work with OpenGL ES3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix 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 | « no previous file | ui/gl/gl_bindings_api_autogen_gl.h » ('j') | ui/gl/gl_bindings_skia_in_process.cc » ('J')
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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 'names': ['glGetShaderPrecisionFormat'], 614 'names': ['glGetShaderPrecisionFormat'],
615 'arguments': 'GLenum shadertype, GLenum precisiontype, ' 615 'arguments': 'GLenum shadertype, GLenum precisiontype, '
616 'GLint* range, GLint* precision', }, 616 'GLint* range, GLint* precision', },
617 { 'return_type': 'void', 617 { 'return_type': 'void',
618 'names': ['glGetShaderSource'], 618 'names': ['glGetShaderSource'],
619 'arguments': 619 'arguments':
620 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', }, 620 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', },
621 { 'return_type': 'const GLubyte*', 621 { 'return_type': 'const GLubyte*',
622 'names': ['glGetString'], 622 'names': ['glGetString'],
623 'arguments': 'GLenum name', }, 623 'arguments': 'GLenum name', },
624 { 'return_type': 'const GLubyte*',
625 'names': ['glGetStringi'],
626 'arguments': 'GLenum name, GLuint index', },
624 { 'return_type': 'void', 627 { 'return_type': 'void',
625 'versions': [{ 'name': 'glGetSynciv', 628 'versions': [{ 'name': 'glGetSynciv',
626 'extensions': ['GL_ARB_sync'] }], 629 'extensions': ['GL_ARB_sync'] }],
627 'arguments': 630 'arguments':
628 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' 631 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,'
629 'GLint* values', }, 632 'GLint* values', },
630 { 'return_type': 'void', 633 { 'return_type': 'void',
631 'names': ['glGetTexLevelParameterfv'], 634 'names': ['glGetTexLevelParameterfv'],
632 'arguments': 'GLenum target, GLint level, GLenum pname, GLfloat* params', }, 635 'arguments': 'GLenum target, GLint level, GLenum pname, GLfloat* params', },
633 { 'return_type': 'void', 636 { 'return_type': 'void',
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2550 'gl_enums_implementation_autogen.h'), 2553 'gl_enums_implementation_autogen.h'),
2551 'wb') 2554 'wb')
2552 GenerateEnumUtils(header_file, enum_header_filenames) 2555 GenerateEnumUtils(header_file, enum_header_filenames)
2553 header_file.close() 2556 header_file.close()
2554 ClangFormat(header_file.name) 2557 ClangFormat(header_file.name)
2555 return 0 2558 return 0
2556 2559
2557 2560
2558 if __name__ == '__main__': 2561 if __name__ == '__main__':
2559 sys.exit(main(sys.argv[1:])) 2562 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_bindings_api_autogen_gl.h » ('j') | ui/gl/gl_bindings_skia_in_process.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698