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

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

Issue 499283002: gpu: support immutable texture on Linux Mesa driver and GLES3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prevent GLES unless GL_APPLE_texture_format_BGRA8888 Created 6 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 { 'return_type': 'void', 613 { 'return_type': 'void',
614 'names': ['glTexParameterfv'], 614 'names': ['glTexParameterfv'],
615 'arguments': 'GLenum target, GLenum pname, const GLfloat* params', }, 615 'arguments': 'GLenum target, GLenum pname, const GLfloat* params', },
616 { 'return_type': 'void', 616 { 'return_type': 'void',
617 'names': ['glTexParameteri'], 617 'names': ['glTexParameteri'],
618 'arguments': 'GLenum target, GLenum pname, GLint param', }, 618 'arguments': 'GLenum target, GLenum pname, GLint param', },
619 { 'return_type': 'void', 619 { 'return_type': 'void',
620 'names': ['glTexParameteriv'], 620 'names': ['glTexParameteriv'],
621 'arguments': 'GLenum target, GLenum pname, const GLint* params', }, 621 'arguments': 'GLenum target, GLenum pname, const GLint* params', },
622 { 'return_type': 'void', 622 { 'return_type': 'void',
623 'names': ['glTexStorage2DEXT'], 623 'known_as': 'glTexStorage2DEXT',
624 'versions': [{ 'name': 'glTexStorage2D',
625 'gl_versions': ['es3'] },
626 { 'name': 'glTexStorage2D',
627 'extensions': ['GL_ARB_texture_storage'] },
628 { 'name': 'glTexStorage2DEXT',
629 'extensions': ['GL_EXT_texture_storage'] }],
624 'arguments': 'GLenum target, GLsizei levels, GLenum internalformat, ' 630 'arguments': 'GLenum target, GLsizei levels, GLenum internalformat, '
625 'GLsizei width, GLsizei height', }, 631 'GLsizei width, GLsizei height', },
626 { 'return_type': 'void', 632 { 'return_type': 'void',
627 'names': ['glTexSubImage2D'], 633 'names': ['glTexSubImage2D'],
628 'arguments': 634 'arguments':
629 'GLenum target, GLint level, GLint xoffset, GLint yoffset, ' 635 'GLenum target, GLint level, GLint xoffset, GLint yoffset, '
630 'GLsizei width, GLsizei height, GLenum format, GLenum type, ' 636 'GLsizei width, GLsizei height, GLenum format, GLenum type, '
631 'const void* pixels', }, 637 'const void* pixels', },
632 { 'return_type': 'void', 638 { 'return_type': 'void',
633 'names': ['glUniform1f'], 639 'names': ['glUniform1f'],
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after
2063 2069
2064 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2070 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2065 'wb') 2071 'wb')
2066 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2072 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2067 source_file.close() 2073 source_file.close()
2068 return 0 2074 return 0
2069 2075
2070 2076
2071 if __name__ == '__main__': 2077 if __name__ == '__main__':
2072 sys.exit(main(sys.argv[1:])) 2078 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698