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

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

Issue 6313013: Exposed GL_NV_fence bindings to GPU process.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « no previous file | app/gfx/gl/gl_interface.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/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2010 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 ['void', ['glVertexAttrib2fv'], 'GLuint indx, const GLfloat* values'], 235 ['void', ['glVertexAttrib2fv'], 'GLuint indx, const GLfloat* values'],
236 ['void', ['glVertexAttrib3f'], 'GLuint indx, GLfloat x, GLfloat y, GLfloat z'], 236 ['void', ['glVertexAttrib3f'], 'GLuint indx, GLfloat x, GLfloat y, GLfloat z'],
237 ['void', ['glVertexAttrib3fv'], 'GLuint indx, const GLfloat* values'], 237 ['void', ['glVertexAttrib3fv'], 'GLuint indx, const GLfloat* values'],
238 ['void', ['glVertexAttrib4f'], 238 ['void', ['glVertexAttrib4f'],
239 'GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w'], 239 'GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w'],
240 ['void', ['glVertexAttrib4fv'], 'GLuint indx, const GLfloat* values'], 240 ['void', ['glVertexAttrib4fv'], 'GLuint indx, const GLfloat* values'],
241 ['void', ['glVertexAttribPointer'], 241 ['void', ['glVertexAttribPointer'],
242 'GLuint indx, GLint size, GLenum type, GLboolean normalized, ' 242 'GLuint indx, GLint size, GLenum type, GLboolean normalized, '
243 'GLsizei stride, const void* ptr'], 243 'GLsizei stride, const void* ptr'],
244 ['void', ['glViewport'], 'GLint x, GLint y, GLsizei width, GLsizei height'], 244 ['void', ['glViewport'], 'GLint x, GLint y, GLsizei width, GLsizei height'],
245 ['void', ['glGenFencesNV'], 'GLsizei n, GLuint* fences'],
246 ['void', ['glDeleteFencesNV'], 'GLsizei n, const GLuint* fences'],
247 ['void', ['glSetFenceNV'], 'GLuint fence, GLenum condition'],
248 ['GLboolean', ['glTestFenceNV'], 'GLuint fence'],
249 ['void', ['glFinishFenceNV'], 'GLuint fence'],
250 ['GLboolean', ['glIsFenceNV'], 'GLuint fence'],
251 ['void', ['glGetFenceivNV'], 'GLuint fence, GLenum pname, GLint* params'],
245 ] 252 ]
246 253
247 OSMESA_FUNCTIONS = [ 254 OSMESA_FUNCTIONS = [
248 ['OSMesaContext', ['OSMesaCreateContext'], 255 ['OSMesaContext', ['OSMesaCreateContext'],
249 'GLenum format, OSMesaContext sharelist'], 256 'GLenum format, OSMesaContext sharelist'],
250 ['OSMesaContext', ['OSMesaCreateContextExt'], 257 ['OSMesaContext', ['OSMesaCreateContextExt'],
251 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, ' 258 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, '
252 'OSMesaContext sharelist'], 259 'OSMesaContext sharelist'],
253 ['void', ['OSMesaDestroyContext'], 'OSMesaContext ctx'], 260 ['void', ['OSMesaDestroyContext'], 'OSMesaContext ctx'],
254 ['GLboolean', ['OSMesaMakeCurrent'], 261 ['GLboolean', ['OSMesaMakeCurrent'],
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 GenerateSource(source_file, functions, set_name) 627 GenerateSource(source_file, functions, set_name)
621 source_file.close() 628 source_file.close()
622 629
623 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 630 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
624 GenerateMockSource(source_file, GL_FUNCTIONS) 631 GenerateMockSource(source_file, GL_FUNCTIONS)
625 source_file.close() 632 source_file.close()
626 633
627 634
628 if __name__ == '__main__': 635 if __name__ == '__main__':
629 main(sys.argv[1:]) 636 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « no previous file | app/gfx/gl/gl_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698