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

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

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase, add bogus spec text Created 5 years 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
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 'names': ['glCopyTexSubImage2D'], 245 'names': ['glCopyTexSubImage2D'],
246 'arguments': 246 'arguments':
247 'GLenum target, GLint level, GLint xoffset, ' 247 'GLenum target, GLint level, GLint xoffset, '
248 'GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height', }, 248 'GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height', },
249 { 'return_type': 'void', 249 { 'return_type': 'void',
250 'versions': [{ 'name': 'glCopyTexSubImage3D' }], 250 'versions': [{ 'name': 'glCopyTexSubImage3D' }],
251 'arguments': 251 'arguments':
252 'GLenum target, GLint level, GLint xoffset, GLint yoffset, ' 252 'GLenum target, GLint level, GLint xoffset, GLint yoffset, '
253 'GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height', }, 253 'GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height', },
254 { 'return_type': 'void', 254 { 'return_type': 'void',
255 'names': ['glCoverageModulationNV'],
256 'arguments': 'GLenum components'},
257 { 'return_type': 'void',
255 'names': ['glCoverFillPathInstancedNV'], 258 'names': ['glCoverFillPathInstancedNV'],
256 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, ' 259 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
257 'GLuint pathBase, GLenum coverMode, GLenum transformType, ' 260 'GLuint pathBase, GLenum coverMode, GLenum transformType, '
258 'const GLfloat* transformValues' }, 261 'const GLfloat* transformValues' },
259 { 'return_type': 'void', 262 { 'return_type': 'void',
260 'names': ['glCoverFillPathNV'], 263 'names': ['glCoverFillPathNV'],
261 'arguments': 'GLuint path, GLenum coverMode' }, 264 'arguments': 'GLuint path, GLenum coverMode' },
262 { 'return_type': 'void', 265 { 'return_type': 'void',
263 'names': ['glCoverStrokePathInstancedNV'], 266 'names': ['glCoverStrokePathInstancedNV'],
264 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, ' 267 'arguments': 'GLsizei numPaths, GLenum pathNameType, const void* paths, '
(...skipping 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after
2754 'gl_enums_implementation_autogen.h'), 2757 'gl_enums_implementation_autogen.h'),
2755 'wb') 2758 'wb')
2756 GenerateEnumUtils(header_file, enum_header_filenames) 2759 GenerateEnumUtils(header_file, enum_header_filenames)
2757 header_file.close() 2760 header_file.close()
2758 ClangFormat(header_file.name) 2761 ClangFormat(header_file.name)
2759 return 0 2762 return 0
2760 2763
2761 2764
2762 if __name__ == '__main__': 2765 if __name__ == '__main__':
2763 sys.exit(main(sys.argv[1:])) 2766 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698