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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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', },
568 { 'return_type': 'void', 565 { 'return_type': 'void',
569 'versions': [{ 'name': 'glGetQueryiv' }], 566 'versions': [{ 'name': 'glGetQueryiv' }],
570 'arguments': 'GLenum target, GLenum pname, GLint* params', }, 567 'arguments': 'GLenum target, GLenum pname, GLint* params', },
571 { 'return_type': 'void', 568 { 'return_type': 'void',
572 'versions': [{ 'name': 'glGetQueryivARB' }, 569 'versions': [{ 'name': 'glGetQueryivARB' },
573 { 'name': 'glGetQueryivEXT', 570 { 'name': 'glGetQueryivEXT',
574 'extensions': ['GL_EXT_occlusion_query_boolean'] }], 571 'extensions': ['GL_EXT_occlusion_query_boolean'] }],
575 'arguments': 'GLenum target, GLenum pname, GLint* params', }, 572 'arguments': 'GLenum target, GLenum pname, GLint* params', },
576 { 'return_type': 'void', 573 { 'return_type': 'void',
577 'versions': [{ 'name': 'glGetQueryObjecti64v', 574 'versions': [{ 'name': 'glGetQueryObjecti64v',
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 'names': ['glGetShaderPrecisionFormat'], 614 'names': ['glGetShaderPrecisionFormat'],
618 'arguments': 'GLenum shadertype, GLenum precisiontype, ' 615 'arguments': 'GLenum shadertype, GLenum precisiontype, '
619 'GLint* range, GLint* precision', }, 616 'GLint* range, GLint* precision', },
620 { 'return_type': 'void', 617 { 'return_type': 'void',
621 'names': ['glGetShaderSource'], 618 'names': ['glGetShaderSource'],
622 'arguments': 619 'arguments':
623 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', }, 620 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', },
624 { 'return_type': 'const GLubyte*', 621 { 'return_type': 'const GLubyte*',
625 'names': ['glGetString'], 622 'names': ['glGetString'],
626 'arguments': 'GLenum name', }, 623 'arguments': 'GLenum name', },
627 { 'return_type': 'const GLubyte*',
628 'names': ['glGetStringi'],
629 'arguments': 'GLenum name, GLuint index', },
630 { 'return_type': 'void', 624 { 'return_type': 'void',
631 'versions': [{ 'name': 'glGetSynciv', 625 'versions': [{ 'name': 'glGetSynciv',
632 'extensions': ['GL_ARB_sync'] }], 626 'extensions': ['GL_ARB_sync'] }],
633 'arguments': 627 'arguments':
634 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' 628 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,'
635 'GLint* values', }, 629 'GLint* values', },
636 { 'return_type': 'void', 630 { 'return_type': 'void',
637 'names': ['glGetTexLevelParameterfv'], 631 'names': ['glGetTexLevelParameterfv'],
638 'arguments': 'GLenum target, GLint level, GLenum pname, GLfloat* params', }, 632 'arguments': 'GLenum target, GLint level, GLenum pname, GLfloat* params', },
639 { 'return_type': 'void', 633 { 'return_type': 'void',
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
2556 'gl_enums_implementation_autogen.h'), 2550 'gl_enums_implementation_autogen.h'),
2557 'wb') 2551 'wb')
2558 GenerateEnumUtils(header_file, enum_header_filenames) 2552 GenerateEnumUtils(header_file, enum_header_filenames)
2559 header_file.close() 2553 header_file.close()
2560 ClangFormat(header_file.name) 2554 ClangFormat(header_file.name)
2561 return 0 2555 return 0
2562 2556
2563 2557
2564 if __name__ == '__main__': 2558 if __name__ == '__main__':
2565 sys.exit(main(sys.argv[1:])) 2559 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