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

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

Issue 7564013: Roll skia to r2034 (and add new gl bindings) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « gpu/command_buffer/common/gl_mock.h ('k') | ui/gfx/gl/gl_bindings_skia_in_process.cc » ('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/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """code generator for GL/GLES extension wrangler.""" 7 """code generator for GL/GLES extension wrangler."""
8 8
9 import os 9 import os
10 import re 10 import re
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ['void', ['glDeleteShader'], 'GLuint shader'], 77 ['void', ['glDeleteShader'], 'GLuint shader'],
78 ['void', ['glDeleteTextures'], 'GLsizei n, const GLuint* textures'], 78 ['void', ['glDeleteTextures'], 'GLsizei n, const GLuint* textures'],
79 ['void', ['glDepthFunc'], 'GLenum func'], 79 ['void', ['glDepthFunc'], 'GLenum func'],
80 ['void', ['glDepthMask'], 'GLboolean flag'], 80 ['void', ['glDepthMask'], 'GLboolean flag'],
81 ['void', ['glDepthRange'], 'GLclampd zNear, GLclampd zFar'], 81 ['void', ['glDepthRange'], 'GLclampd zNear, GLclampd zFar'],
82 ['void', ['glDepthRangef'], 'GLclampf zNear, GLclampf zFar'], 82 ['void', ['glDepthRangef'], 'GLclampf zNear, GLclampf zFar'],
83 ['void', ['glDetachShader'], 'GLuint program, GLuint shader'], 83 ['void', ['glDetachShader'], 'GLuint program, GLuint shader'],
84 ['void', ['glDisable'], 'GLenum cap'], 84 ['void', ['glDisable'], 'GLenum cap'],
85 ['void', ['glDisableVertexAttribArray'], 'GLuint index'], 85 ['void', ['glDisableVertexAttribArray'], 'GLuint index'],
86 ['void', ['glDrawArrays'], 'GLenum mode, GLint first, GLsizei count'], 86 ['void', ['glDrawArrays'], 'GLenum mode, GLint first, GLsizei count'],
87 ['void', ['glDrawBuffer'], 'GLenum mode'],
88 ['void', ['glDrawBuffersARB'], 'GLsizei n, const GLenum* bufs'],
87 ['void', ['glDrawElements'], 89 ['void', ['glDrawElements'],
88 'GLenum mode, GLsizei count, GLenum type, const void* indices'], 90 'GLenum mode, GLsizei count, GLenum type, const void* indices'],
89 ['void', ['glEGLImageTargetTexture2DOES'], 91 ['void', ['glEGLImageTargetTexture2DOES'],
90 'GLenum target, GLeglImageOES image'], 92 'GLenum target, GLeglImageOES image'],
91 ['void', ['glEnable'], 'GLenum cap'], 93 ['void', ['glEnable'], 'GLenum cap'],
92 ['void', ['glEnableVertexAttribArray'], 'GLuint index'], 94 ['void', ['glEnableVertexAttribArray'], 'GLuint index'],
93 ['void', ['glFinish'], 'void'], 95 ['void', ['glFinish'], 'void'],
94 ['void', ['glFlush'], 'void'], 96 ['void', ['glFlush'], 'void'],
95 ['void', ['glFramebufferRenderbufferEXT', 'glFramebufferRenderbuffer'], 97 ['void', ['glFramebufferRenderbufferEXT', 'glFramebufferRenderbuffer'],
96 'GLenum target, GLenum attachment, GLenum renderbuffertarget, ' 98 'GLenum target, GLenum attachment, GLenum renderbuffertarget, '
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 ['GLboolean', ['glIsProgram'], 'GLuint program'], 163 ['GLboolean', ['glIsProgram'], 'GLuint program'],
162 ['GLboolean', ['glIsRenderbufferEXT', 'glIsRenderbuffer'], 164 ['GLboolean', ['glIsRenderbufferEXT', 'glIsRenderbuffer'],
163 'GLuint renderbuffer'], 165 'GLuint renderbuffer'],
164 ['GLboolean', ['glIsShader'], 'GLuint shader'], 166 ['GLboolean', ['glIsShader'], 'GLuint shader'],
165 ['GLboolean', ['glIsTexture'], 'GLuint texture'], 167 ['GLboolean', ['glIsTexture'], 'GLuint texture'],
166 ['void', ['glLineWidth'], 'GLfloat width'], 168 ['void', ['glLineWidth'], 'GLfloat width'],
167 ['void', ['glLinkProgram'], 'GLuint program'], 169 ['void', ['glLinkProgram'], 'GLuint program'],
168 ['void*', ['glMapBuffer'], 'GLenum target, GLenum access'], 170 ['void*', ['glMapBuffer'], 'GLenum target, GLenum access'],
169 ['void', ['glPixelStorei'], 'GLenum pname, GLint param'], 171 ['void', ['glPixelStorei'], 'GLenum pname, GLint param'],
170 ['void', ['glPolygonOffset'], 'GLfloat factor, GLfloat units'], 172 ['void', ['glPolygonOffset'], 'GLfloat factor, GLfloat units'],
173 ['void', ['glReadBuffer'], 'GLenum src'],
171 ['void', ['glReadPixels'], 174 ['void', ['glReadPixels'],
172 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, ' 175 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, '
173 'GLenum type, void* pixels'], 176 'GLenum type, void* pixels'],
174 ['void', ['glReleaseShaderCompiler'], 'void'], 177 ['void', ['glReleaseShaderCompiler'], 'void'],
175 ['void', ['glRenderbufferStorageMultisampleEXT', 178 ['void', ['glRenderbufferStorageMultisampleEXT',
176 'glRenderbufferStorageMultisample'], 179 'glRenderbufferStorageMultisample'],
177 'GLenum target, GLsizei samples, GLenum internalformat, ' 180 'GLenum target, GLsizei samples, GLenum internalformat, '
178 'GLsizei width, GLsizei height'], 181 'GLsizei width, GLsizei height'],
179 ['void', ['glRenderbufferStorageMultisampleANGLE', 182 ['void', ['glRenderbufferStorageMultisampleANGLE',
180 'glRenderbufferStorageMultisample'], 183 'glRenderbufferStorageMultisample'],
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 GenerateSource(source_file, functions, set_name) 661 GenerateSource(source_file, functions, set_name)
659 source_file.close() 662 source_file.close()
660 663
661 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 664 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
662 GenerateMockSource(source_file, GL_FUNCTIONS) 665 GenerateMockSource(source_file, GL_FUNCTIONS)
663 source_file.close() 666 source_file.close()
664 667
665 668
666 if __name__ == '__main__': 669 if __name__ == '__main__':
667 main(sys.argv[1:]) 670 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gl_mock.h ('k') | ui/gfx/gl/gl_bindings_skia_in_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698