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

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

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 9 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 | « ui/events/latency_info.cc ('k') | ui/gl/gl_bindings_api_autogen_gl.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) 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 'extensions': ['GL_ARB_get_program_binary'] }], 555 'extensions': ['GL_ARB_get_program_binary'] }],
556 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' 556 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, '
557 'GLenum* binaryFormat, GLvoid* binary' }, 557 'GLenum* binaryFormat, GLvoid* binary' },
558 { 'return_type': 'void', 558 { 'return_type': 'void',
559 'names': ['glGetProgramInfoLog'], 559 'names': ['glGetProgramInfoLog'],
560 'arguments': 560 'arguments':
561 'GLuint program, GLsizei bufsize, GLsizei* length, char* infolog', }, 561 'GLuint program, GLsizei bufsize, GLsizei* length, char* infolog', },
562 { 'return_type': 'void', 562 { 'return_type': 'void',
563 'names': ['glGetProgramiv'], 563 'names': ['glGetProgramiv'],
564 'arguments': 'GLuint program, GLenum pname, GLint* params', }, 564 'arguments': 'GLuint program, GLenum pname, GLint* params', },
565 { 'return_type': 'GLint',
566 'names': ['glGetProgramResourceLocation'],
567 'arguments': 'GLuint program, GLenum programInterface, const char* name', },
565 { 'return_type': 'void', 568 { 'return_type': 'void',
566 'versions': [{ 'name': 'glGetQueryiv' }], 569 'versions': [{ 'name': 'glGetQueryiv' }],
567 'arguments': 'GLenum target, GLenum pname, GLint* params', }, 570 'arguments': 'GLenum target, GLenum pname, GLint* params', },
568 { 'return_type': 'void', 571 { 'return_type': 'void',
569 'versions': [{ 'name': 'glGetQueryivARB' }, 572 'versions': [{ 'name': 'glGetQueryivARB' },
570 { 'name': 'glGetQueryivEXT', 573 { 'name': 'glGetQueryivEXT',
571 'extensions': ['GL_EXT_occlusion_query_boolean'] }], 574 'extensions': ['GL_EXT_occlusion_query_boolean'] }],
572 'arguments': 'GLenum target, GLenum pname, GLint* params', }, 575 'arguments': 'GLenum target, GLenum pname, GLint* params', },
573 { 'return_type': 'void', 576 { 'return_type': 'void',
574 'versions': [{ 'name': 'glGetQueryObjecti64v', 577 'versions': [{ 'name': 'glGetQueryObjecti64v',
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 'names': ['glGetShaderPrecisionFormat'], 617 'names': ['glGetShaderPrecisionFormat'],
615 'arguments': 'GLenum shadertype, GLenum precisiontype, ' 618 'arguments': 'GLenum shadertype, GLenum precisiontype, '
616 'GLint* range, GLint* precision', }, 619 'GLint* range, GLint* precision', },
617 { 'return_type': 'void', 620 { 'return_type': 'void',
618 'names': ['glGetShaderSource'], 621 'names': ['glGetShaderSource'],
619 'arguments': 622 'arguments':
620 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', }, 623 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', },
621 { 'return_type': 'const GLubyte*', 624 { 'return_type': 'const GLubyte*',
622 'names': ['glGetString'], 625 'names': ['glGetString'],
623 'arguments': 'GLenum name', }, 626 'arguments': 'GLenum name', },
627 { 'return_type': 'const GLubyte*',
628 'names': ['glGetStringi'],
629 'arguments': 'GLenum name, GLuint index', },
624 { 'return_type': 'void', 630 { 'return_type': 'void',
625 'versions': [{ 'name': 'glGetSynciv', 631 'versions': [{ 'name': 'glGetSynciv',
626 'extensions': ['GL_ARB_sync'] }], 632 'extensions': ['GL_ARB_sync'] }],
627 'arguments': 633 'arguments':
628 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' 634 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,'
629 'GLint* values', }, 635 'GLint* values', },
630 { 'return_type': 'void', 636 { 'return_type': 'void',
631 'names': ['glGetTexLevelParameterfv'], 637 'names': ['glGetTexLevelParameterfv'],
632 'arguments': 'GLenum target, GLint level, GLenum pname, GLfloat* params', }, 638 'arguments': 'GLenum target, GLint level, GLenum pname, GLfloat* params', },
633 { 'return_type': 'void', 639 { 'return_type': 'void',
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2550 'gl_enums_implementation_autogen.h'), 2556 'gl_enums_implementation_autogen.h'),
2551 'wb') 2557 'wb')
2552 GenerateEnumUtils(header_file, enum_header_filenames) 2558 GenerateEnumUtils(header_file, enum_header_filenames)
2553 header_file.close() 2559 header_file.close()
2554 ClangFormat(header_file.name) 2560 ClangFormat(header_file.name)
2555 return 0 2561 return 0
2556 2562
2557 2563
2558 if __name__ == '__main__': 2564 if __name__ == '__main__':
2559 sys.exit(main(sys.argv[1:])) 2565 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « ui/events/latency_info.cc ('k') | ui/gl/gl_bindings_api_autogen_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698