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

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

Issue 12545014: Implement EXT_draw_buffers WebGL extention support in command buffer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 { 'return_type': 'void', 182 { 'return_type': 'void',
183 'names': ['glDisableVertexAttribArray'], 183 'names': ['glDisableVertexAttribArray'],
184 'arguments': 'GLuint index', }, 184 'arguments': 'GLuint index', },
185 { 'return_type': 'void', 185 { 'return_type': 'void',
186 'names': ['glDrawArrays'], 186 'names': ['glDrawArrays'],
187 'arguments': 'GLenum mode, GLint first, GLsizei count', }, 187 'arguments': 'GLenum mode, GLint first, GLsizei count', },
188 { 'return_type': 'void', 188 { 'return_type': 'void',
189 'names': ['glDrawBuffer'], 189 'names': ['glDrawBuffer'],
190 'arguments': 'GLenum mode', }, 190 'arguments': 'GLenum mode', },
191 { 'return_type': 'void', 191 { 'return_type': 'void',
192 'names': ['glDrawBuffersARB'], 192 'names': ['glDrawBuffersARB', 'glDrawBuffersEXT'],
193 'arguments': 'GLsizei n, const GLenum* bufs', }, 193 'arguments': 'GLsizei n, const GLenum* bufs', },
194 { 'return_type': 'void', 194 { 'return_type': 'void',
195 'names': ['glDrawElements'], 195 'names': ['glDrawElements'],
196 'arguments': 196 'arguments':
197 'GLenum mode, GLsizei count, GLenum type, const void* indices', }, 197 'GLenum mode, GLsizei count, GLenum type, const void* indices', },
198 { 'return_type': 'void', 198 { 'return_type': 'void',
199 'names': ['glEGLImageTargetTexture2DOES'], 199 'names': ['glEGLImageTargetTexture2DOES'],
200 'arguments': 'GLenum target, GLeglImageOES image', }, 200 'arguments': 'GLenum target, GLeglImageOES image', },
201 { 'return_type': 'void', 201 { 'return_type': 'void',
202 'names': ['glEGLImageTargetRenderbufferStorageOES'], 202 'names': ['glEGLImageTargetRenderbufferStorageOES'],
(...skipping 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 header_file.close() 1819 header_file.close()
1820 1820
1821 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 1821 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
1822 GenerateMockSource(source_file, GL_FUNCTIONS) 1822 GenerateMockSource(source_file, GL_FUNCTIONS)
1823 source_file.close() 1823 source_file.close()
1824 return 0 1824 return 0
1825 1825
1826 1826
1827 if __name__ == '__main__': 1827 if __name__ == '__main__':
1828 sys.exit(main(sys.argv[1:])) 1828 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698