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

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

Issue 18492005: Add GL_EXT_multisampled_render_to_texture support to command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved ahead to TOT Created 7 years, 5 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/texture_manager_unittest.cc ('k') | ui/gl/gl_bindings.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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 'names': ['glFramebufferRenderbufferEXT', 'glFramebufferRenderbuffer'], 223 'names': ['glFramebufferRenderbufferEXT', 'glFramebufferRenderbuffer'],
224 'arguments': \ 224 'arguments': \
225 'GLenum target, GLenum attachment, GLenum renderbuffertarget, ' 225 'GLenum target, GLenum attachment, GLenum renderbuffertarget, '
226 'GLuint renderbuffer', }, 226 'GLuint renderbuffer', },
227 { 'return_type': 'void', 227 { 'return_type': 'void',
228 'names': ['glFramebufferTexture2DEXT', 'glFramebufferTexture2D'], 228 'names': ['glFramebufferTexture2DEXT', 'glFramebufferTexture2D'],
229 'arguments': 229 'arguments':
230 'GLenum target, GLenum attachment, GLenum textarget, GLuint texture, ' 230 'GLenum target, GLenum attachment, GLenum textarget, GLuint texture, '
231 'GLint level', }, 231 'GLint level', },
232 { 'return_type': 'void', 232 { 'return_type': 'void',
233 'names': ['glFramebufferTexture2DMultisampleEXT'],
234 'arguments':
235 'GLenum target, GLenum attachment, GLenum textarget, GLuint texture, '
236 'GLint level, GLsizei samples', },
237 { 'return_type': 'void',
238 'names': ['glFramebufferTexture2DMultisampleIMG'],
239 'arguments':
240 'GLenum target, GLenum attachment, GLenum textarget, GLuint texture, '
241 'GLint level, GLsizei samples', },
242 { 'return_type': 'void',
233 'names': ['glFrontFace'], 243 'names': ['glFrontFace'],
234 'arguments': 'GLenum mode', }, 244 'arguments': 'GLenum mode', },
235 { 'return_type': 'void', 245 { 'return_type': 'void',
236 'names': ['glGenBuffersARB', 'glGenBuffers'], 246 'names': ['glGenBuffersARB', 'glGenBuffers'],
237 'arguments': 'GLsizei n, GLuint* buffers', }, 247 'arguments': 'GLsizei n, GLuint* buffers', },
238 { 'return_type': 'void', 248 { 'return_type': 'void',
239 'names': ['glGenQueries'], 249 'names': ['glGenQueries'],
240 'arguments': 'GLsizei n, GLuint* ids', }, 250 'arguments': 'GLsizei n, GLuint* ids', },
241 { 'return_type': 'void', 251 { 'return_type': 'void',
242 'names': ['glGenQueriesARB', 'glGenQueriesEXT'], 252 'names': ['glGenQueriesARB', 'glGenQueriesEXT'],
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 'names': ['glRenderbufferStorageMultisampleEXT', 469 'names': ['glRenderbufferStorageMultisampleEXT',
460 'glRenderbufferStorageMultisample'], 470 'glRenderbufferStorageMultisample'],
461 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, ' 471 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, '
462 'GLsizei width, GLsizei height', }, 472 'GLsizei width, GLsizei height', },
463 { 'return_type': 'void', 473 { 'return_type': 'void',
464 'names': ['glRenderbufferStorageMultisampleANGLE', 474 'names': ['glRenderbufferStorageMultisampleANGLE',
465 'glRenderbufferStorageMultisample'], 475 'glRenderbufferStorageMultisample'],
466 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, ' 476 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, '
467 'GLsizei width, GLsizei height', }, 477 'GLsizei width, GLsizei height', },
468 { 'return_type': 'void', 478 { 'return_type': 'void',
479 'names': ['glRenderbufferStorageMultisampleIMG'],
480 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, '
481 'GLsizei width, GLsizei height', },
482 { 'return_type': 'void',
469 'names': ['glRenderbufferStorageEXT', 'glRenderbufferStorage'], 483 'names': ['glRenderbufferStorageEXT', 'glRenderbufferStorage'],
470 'arguments': 484 'arguments':
471 'GLenum target, GLenum internalformat, GLsizei width, GLsizei height', }, 485 'GLenum target, GLenum internalformat, GLsizei width, GLsizei height', },
472 { 'return_type': 'void', 486 { 'return_type': 'void',
473 'names': ['glSampleCoverage'], 487 'names': ['glSampleCoverage'],
474 'arguments': 'GLclampf value, GLboolean invert', }, 488 'arguments': 'GLclampf value, GLboolean invert', },
475 { 'return_type': 'void', 489 { 'return_type': 'void',
476 'names': ['glScissor'], 490 'names': ['glScissor'],
477 'arguments': 'GLint x, GLint y, GLsizei width, GLsizei height', }, 491 'arguments': 'GLint x, GLint y, GLsizei width, GLsizei height', },
478 { 'return_type': 'void', 492 { 'return_type': 'void',
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 header_file.close() 1821 header_file.close()
1808 1822
1809 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 1823 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
1810 GenerateMockSource(source_file, GL_FUNCTIONS) 1824 GenerateMockSource(source_file, GL_FUNCTIONS)
1811 source_file.close() 1825 source_file.close()
1812 return 0 1826 return 0
1813 1827
1814 1828
1815 if __name__ == '__main__': 1829 if __name__ == '__main__':
1816 sys.exit(main(sys.argv[1:])) 1830 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_manager_unittest.cc ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698