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

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

Issue 72173002: gpu: Support ES3 msaa and depth/stencil formats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment, rebase Created 7 years, 1 month 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/config/gpu_driver_bug_workaround_type.h ('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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 'names': ['glBlendEquationSeparate'], 56 'names': ['glBlendEquationSeparate'],
57 'arguments': 'GLenum modeRGB, GLenum modeAlpha', }, 57 'arguments': 'GLenum modeRGB, GLenum modeAlpha', },
58 { 'return_type': 'void', 58 { 'return_type': 'void',
59 'names': ['glBlendFunc'], 59 'names': ['glBlendFunc'],
60 'arguments': 'GLenum sfactor, GLenum dfactor', }, 60 'arguments': 'GLenum sfactor, GLenum dfactor', },
61 { 'return_type': 'void', 61 { 'return_type': 'void',
62 'names': ['glBlendFuncSeparate'], 62 'names': ['glBlendFuncSeparate'],
63 'arguments': 63 'arguments':
64 'GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha', }, 64 'GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha', },
65 { 'return_type': 'void', 65 { 'return_type': 'void',
66 'names': ['glBlitFramebuffer'],
67 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, '
68 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, '
69 'GLbitfield mask, GLenum filter', },
70 { 'return_type': 'void',
66 'names': ['glBlitFramebufferEXT', 'glBlitFramebuffer'], 71 'names': ['glBlitFramebufferEXT', 'glBlitFramebuffer'],
67 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, ' 72 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, '
68 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, ' 73 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, '
69 'GLbitfield mask, GLenum filter', }, 74 'GLbitfield mask, GLenum filter', },
70 { 'return_type': 'void', 75 { 'return_type': 'void',
71 'names': ['glBlitFramebufferANGLE', 'glBlitFramebuffer'], 76 'names': ['glBlitFramebufferANGLE', 'glBlitFramebuffer'],
72 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, ' 77 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, '
73 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, ' 78 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, '
74 'GLbitfield mask, GLenum filter', }, 79 'GLbitfield mask, GLenum filter', },
75 { 'return_type': 'void', 80 { 'return_type': 'void',
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 'arguments': 'GLenum src', }, 471 'arguments': 'GLenum src', },
467 { 'return_type': 'void', 472 { 'return_type': 'void',
468 'names': ['glReadPixels'], 473 'names': ['glReadPixels'],
469 'arguments': 474 'arguments':
470 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, ' 475 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, '
471 'GLenum type, void* pixels', }, 476 'GLenum type, void* pixels', },
472 { 'return_type': 'void', 477 { 'return_type': 'void',
473 'names': ['glReleaseShaderCompiler'], 478 'names': ['glReleaseShaderCompiler'],
474 'arguments': 'void', }, 479 'arguments': 'void', },
475 { 'return_type': 'void', 480 { 'return_type': 'void',
481 'names': ['glRenderbufferStorageMultisample'],
482 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, '
483 'GLsizei width, GLsizei height', },
484 { 'return_type': 'void',
476 'names': ['glRenderbufferStorageMultisampleEXT', 485 'names': ['glRenderbufferStorageMultisampleEXT',
477 'glRenderbufferStorageMultisample'], 486 'glRenderbufferStorageMultisample'],
478 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, ' 487 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, '
479 'GLsizei width, GLsizei height', }, 488 'GLsizei width, GLsizei height', },
480 { 'return_type': 'void', 489 { 'return_type': 'void',
481 'names': ['glRenderbufferStorageMultisampleANGLE', 490 'names': ['glRenderbufferStorageMultisampleANGLE',
482 'glRenderbufferStorageMultisample'], 491 'glRenderbufferStorageMultisample'],
483 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, ' 492 'arguments': 'GLenum target, GLsizei samples, GLenum internalformat, '
484 'GLsizei width, GLsizei height', }, 493 'GLsizei width, GLsizei height', },
485 { 'return_type': 'void', 494 { 'return_type': 'void',
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 header_file.close() 1841 header_file.close()
1833 1842
1834 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 1843 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
1835 GenerateMockSource(source_file, GL_FUNCTIONS) 1844 GenerateMockSource(source_file, GL_FUNCTIONS)
1836 source_file.close() 1845 source_file.close()
1837 return 0 1846 return 0
1838 1847
1839 1848
1840 if __name__ == '__main__': 1849 if __name__ == '__main__':
1841 sys.exit(main(sys.argv[1:])) 1850 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698