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

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

Issue 180723023: gpu: Mailbox emulation with EGLImage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 6 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer_service.gypi ('k') | ui/gl/gl_fence.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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 'arguments': 'GLsync sync', }, 757 'arguments': 'GLsync sync', },
758 { 'return_type': 'void', 758 { 'return_type': 'void',
759 'names': ['glGetSynciv'], 759 'names': ['glGetSynciv'],
760 'arguments': 760 'arguments':
761 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' 761 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,'
762 'GLint* values', }, 762 'GLint* values', },
763 { 'return_type': 'GLenum', 763 { 'return_type': 'GLenum',
764 'names': ['glClientWaitSync'], 764 'names': ['glClientWaitSync'],
765 'arguments': 765 'arguments':
766 'GLsync sync, GLbitfield flags, GLuint64 timeout', }, 766 'GLsync sync, GLbitfield flags, GLuint64 timeout', },
767 { 'return_type': 'GLenum',
768 'names': ['glWaitSync'],
769 'arguments':
770 'GLsync sync, GLbitfield flags, GLuint64 timeout', },
767 { 'return_type': 'void', 771 { 'return_type': 'void',
768 'known_as': 'glDrawArraysInstancedANGLE', 772 'known_as': 'glDrawArraysInstancedANGLE',
769 'names': ['glDrawArraysInstancedARB', 'glDrawArraysInstancedANGLE'], 773 'names': ['glDrawArraysInstancedARB', 'glDrawArraysInstancedANGLE'],
770 'arguments': 'GLenum mode, GLint first, GLsizei count, GLsizei primcount', }, 774 'arguments': 'GLenum mode, GLint first, GLsizei count, GLsizei primcount', },
771 { 'return_type': 'void', 775 { 'return_type': 'void',
772 'known_as': 'glDrawElementsInstancedANGLE', 776 'known_as': 'glDrawElementsInstancedANGLE',
773 'names': ['glDrawElementsInstancedARB', 'glDrawElementsInstancedANGLE'], 777 'names': ['glDrawElementsInstancedARB', 'glDrawElementsInstancedANGLE'],
774 'arguments': 778 'arguments':
775 'GLenum mode, GLsizei count, GLenum type, const void* indices, ' 779 'GLenum mode, GLsizei count, GLenum type, const void* indices, '
776 'GLsizei primcount', }, 780 'GLsizei primcount', },
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 2013
2010 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2014 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2011 'wb') 2015 'wb')
2012 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2016 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2013 source_file.close() 2017 source_file.close()
2014 return 0 2018 return 0
2015 2019
2016 2020
2017 if __name__ == '__main__': 2021 if __name__ == '__main__':
2018 sys.exit(main(sys.argv[1:])) 2022 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/command_buffer_service.gypi ('k') | ui/gl/gl_fence.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698