| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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:])) | 
| OLD | NEW | 
|---|