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

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

Issue 8772033: Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « third_party/khronos/GLES2/gl2ext.h ('k') | ui/gfx/gl/gl_interface.h » ('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) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 os 8 import os
9 import collections 9 import collections
10 import re 10 import re
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 ['void', ['glTexImage2D'], 218 ['void', ['glTexImage2D'],
219 'GLenum target, GLint level, GLint internalformat, GLsizei width, ' 219 'GLenum target, GLint level, GLint internalformat, GLsizei width, '
220 'GLsizei height, GLint border, GLenum format, GLenum type, ' 220 'GLsizei height, GLint border, GLenum format, GLenum type, '
221 'const void* pixels'], 221 'const void* pixels'],
222 ['void', ['glTexParameterf'], 'GLenum target, GLenum pname, GLfloat param'], 222 ['void', ['glTexParameterf'], 'GLenum target, GLenum pname, GLfloat param'],
223 ['void', ['glTexParameterfv'], 223 ['void', ['glTexParameterfv'],
224 'GLenum target, GLenum pname, const GLfloat* params'], 224 'GLenum target, GLenum pname, const GLfloat* params'],
225 ['void', ['glTexParameteri'], 'GLenum target, GLenum pname, GLint param'], 225 ['void', ['glTexParameteri'], 'GLenum target, GLenum pname, GLint param'],
226 ['void', ['glTexParameteriv'], 226 ['void', ['glTexParameteriv'],
227 'GLenum target, GLenum pname, const GLint* params'], 227 'GLenum target, GLenum pname, const GLint* params'],
228 ['void', ['glTexStorage2DEXT'],
229 'GLenum target, GLsizei levels, GLenum internalformat, '
230 'GLsizei width, GLsizei height'],
228 ['void', ['glTexSubImage2D'], 231 ['void', ['glTexSubImage2D'],
229 'GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, ' 232 'GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, '
230 'GLsizei height, GLenum format, GLenum type, const void* pixels'], 233 'GLsizei height, GLenum format, GLenum type, const void* pixels'],
231 ['void', ['glUniform1f'], 'GLint location, GLfloat x'], 234 ['void', ['glUniform1f'], 'GLint location, GLfloat x'],
232 ['void', ['glUniform1fv'], 'GLint location, GLsizei count, const GLfloat* v'], 235 ['void', ['glUniform1fv'], 'GLint location, GLsizei count, const GLfloat* v'],
233 ['void', ['glUniform1i'], 'GLint location, GLint x'], 236 ['void', ['glUniform1i'], 'GLint location, GLint x'],
234 ['void', ['glUniform1iv'], 'GLint location, GLsizei count, const GLint* v'], 237 ['void', ['glUniform1iv'], 'GLint location, GLsizei count, const GLint* v'],
235 ['void', ['glUniform2f'], 'GLint location, GLfloat x, GLfloat y'], 238 ['void', ['glUniform2f'], 'GLint location, GLfloat x, GLfloat y'],
236 ['void', ['glUniform2fv'], 'GLint location, GLsizei count, const GLfloat* v'], 239 ['void', ['glUniform2fv'], 'GLint location, GLsizei count, const GLfloat* v'],
237 ['void', ['glUniform2i'], 'GLint location, GLint x, GLint y'], 240 ['void', ['glUniform2i'], 'GLint location, GLint x, GLint y'],
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 source_file.close() 895 source_file.close()
893 896
894 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 897 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
895 GenerateMockSource(source_file, GL_FUNCTIONS) 898 GenerateMockSource(source_file, GL_FUNCTIONS)
896 source_file.close() 899 source_file.close()
897 return 0 900 return 0
898 901
899 902
900 if __name__ == '__main__': 903 if __name__ == '__main__':
901 sys.exit(main(sys.argv[1:])) 904 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « third_party/khronos/GLES2/gl2ext.h ('k') | ui/gfx/gl/gl_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698