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

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

Issue 640283003: Use NV_draw_buffers to implement EXT_draw_buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Added explanation of nv_draw_buffers flag to feature_info.cc Created 6 years, 2 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 | « gpu/command_buffer/service/test_helper.cc ('k') | no next file » | 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 { 'return_type': 'void', 209 { 'return_type': 'void',
210 'names': ['glDisableVertexAttribArray'], 210 'names': ['glDisableVertexAttribArray'],
211 'arguments': 'GLuint index', }, 211 'arguments': 'GLuint index', },
212 { 'return_type': 'void', 212 { 'return_type': 'void',
213 'names': ['glDrawArrays'], 213 'names': ['glDrawArrays'],
214 'arguments': 'GLenum mode, GLint first, GLsizei count', }, 214 'arguments': 'GLenum mode, GLint first, GLsizei count', },
215 { 'return_type': 'void', 215 { 'return_type': 'void',
216 'names': ['glDrawBuffer'], 216 'names': ['glDrawBuffer'],
217 'arguments': 'GLenum mode', }, 217 'arguments': 'GLenum mode', },
218 { 'return_type': 'void', 218 { 'return_type': 'void',
219 'names': ['glDrawBuffersARB', 'glDrawBuffersEXT'], 219 'names': ['glDrawBuffersARB', 'glDrawBuffersEXT', 'glDrawBuffers'],
220 'arguments': 'GLsizei n, const GLenum* bufs', }, 220 'arguments': 'GLsizei n, const GLenum* bufs', },
221 { 'return_type': 'void', 221 { 'return_type': 'void',
222 'names': ['glDrawElements'], 222 'names': ['glDrawElements'],
223 'arguments': 223 'arguments':
224 'GLenum mode, GLsizei count, GLenum type, const void* indices', }, 224 'GLenum mode, GLsizei count, GLenum type, const void* indices', },
225 { 'return_type': 'void', 225 { 'return_type': 'void',
226 'names': ['glEGLImageTargetTexture2DOES'], 226 'names': ['glEGLImageTargetTexture2DOES'],
227 'arguments': 'GLenum target, GLeglImageOES image', }, 227 'arguments': 'GLenum target, GLeglImageOES image', },
228 { 'return_type': 'void', 228 { 'return_type': 'void',
229 'names': ['glEGLImageTargetRenderbufferStorageOES'], 229 'names': ['glEGLImageTargetRenderbufferStorageOES'],
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 2079
2080 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2080 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2081 'wb') 2081 'wb')
2082 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2082 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2083 source_file.close() 2083 source_file.close()
2084 return 0 2084 return 0
2085 2085
2086 2086
2087 if __name__ == '__main__': 2087 if __name__ == '__main__':
2088 sys.exit(main(sys.argv[1:])) 2088 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/test_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698