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

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

Issue 1119723003: Add glCopyCompressedTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments in tests Created 5 years, 6 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 'GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders', }, 492 'GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders', },
493 { 'return_type': 'GLint', 493 { 'return_type': 'GLint',
494 'names': ['glGetAttribLocation'], 494 'names': ['glGetAttribLocation'],
495 'arguments': 'GLuint program, const char* name', }, 495 'arguments': 'GLuint program, const char* name', },
496 { 'return_type': 'void', 496 { 'return_type': 'void',
497 'names': ['glGetBooleanv'], 497 'names': ['glGetBooleanv'],
498 'arguments': 'GLenum pname, GLboolean* params', }, 498 'arguments': 'GLenum pname, GLboolean* params', },
499 { 'return_type': 'void', 499 { 'return_type': 'void',
500 'names': ['glGetBufferParameteriv'], 500 'names': ['glGetBufferParameteriv'],
501 'arguments': 'GLenum target, GLenum pname, GLint* params', }, 501 'arguments': 'GLenum target, GLenum pname, GLint* params', },
502 { 'return_type': 'void',
503 'versions': [{ 'name': 'glGetCompressedTexImage' }],
504 'arguments':
505 'GLenum target, GLint lod, GLvoid* img' },
502 { 'return_type': 'GLenum', 506 { 'return_type': 'GLenum',
503 'names': ['glGetError'], 507 'names': ['glGetError'],
504 'arguments': 'void', 508 'arguments': 'void',
505 'logging_code': """ 509 'logging_code': """
506 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result)); 510 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result));
507 """, }, 511 """, },
508 { 'return_type': 'void', 512 { 'return_type': 'void',
509 'names': ['glGetFenceivNV'], 513 'names': ['glGetFenceivNV'],
510 'arguments': 'GLuint fence, GLenum pname, GLint* params', }, 514 'arguments': 'GLuint fence, GLenum pname, GLint* params', },
511 { 'return_type': 'void', 515 { 'return_type': 'void',
(...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 'gl_enums_implementation_autogen.h'), 2603 'gl_enums_implementation_autogen.h'),
2600 'wb') 2604 'wb')
2601 GenerateEnumUtils(header_file, enum_header_filenames) 2605 GenerateEnumUtils(header_file, enum_header_filenames)
2602 header_file.close() 2606 header_file.close()
2603 ClangFormat(header_file.name) 2607 ClangFormat(header_file.name)
2604 return 0 2608 return 0
2605 2609
2606 2610
2607 if __name__ == '__main__': 2611 if __name__ == '__main__':
2608 sys.exit(main(sys.argv[1:])) 2612 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698