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

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

Issue 7395020: Create new GLSurface for cross process image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler_linux.cc ('k') | ui/gfx/gl/gl_context_cgl.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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 ['BOOL', ['wglDestroyPbufferARB'], 'HPBUFFERARB hPbuffer'], 370 ['BOOL', ['wglDestroyPbufferARB'], 'HPBUFFERARB hPbuffer'],
371 ['BOOL', ['wglQueryPbufferARB'], 371 ['BOOL', ['wglQueryPbufferARB'],
372 'HPBUFFERARB hPbuffer, int iAttribute, int* piValue'], 372 'HPBUFFERARB hPbuffer, int iAttribute, int* piValue'],
373 ] 373 ]
374 374
375 GLX_FUNCTIONS = [ 375 GLX_FUNCTIONS = [
376 ['XVisualInfo*', ['glXChooseVisual'], 376 ['XVisualInfo*', ['glXChooseVisual'],
377 'Display* dpy, int screen, int* attribList'], 377 'Display* dpy, int screen, int* attribList'],
378 ['GLXContext', ['glXCreateContext'], 378 ['GLXContext', ['glXCreateContext'],
379 'Display* dpy, XVisualInfo* vis, GLXContext shareList, int direct'], 379 'Display* dpy, XVisualInfo* vis, GLXContext shareList, int direct'],
380 ['void', ['glXBindTexImageEXT'],
381 'Display* dpy, GLXDrawable drawable, int buffer, int* attribList'],
382 ['void', ['glXReleaseTexImageEXT'],
383 'Display* dpy, GLXDrawable drawable, int buffer'],
380 ['void', ['glXDestroyContext'], 'Display* dpy, GLXContext ctx'], 384 ['void', ['glXDestroyContext'], 'Display* dpy, GLXContext ctx'],
381 ['int', ['glXMakeCurrent'], 385 ['int', ['glXMakeCurrent'],
382 'Display* dpy, GLXDrawable drawable, GLXContext ctx'], 386 'Display* dpy, GLXDrawable drawable, GLXContext ctx'],
383 ['void', ['glXCopyContext'], 387 ['void', ['glXCopyContext'],
384 'Display* dpy, GLXContext src, GLXContext dst, unsigned long mask'], 388 'Display* dpy, GLXContext src, GLXContext dst, unsigned long mask'],
385 ['void', ['glXSwapBuffers'], 'Display* dpy, GLXDrawable drawable'], 389 ['void', ['glXSwapBuffers'], 'Display* dpy, GLXDrawable drawable'],
386 ['GLXPixmap', ['glXCreateGLXPixmap'], 390 ['GLXPixmap', ['glXCreateGLXPixmap'],
387 'Display* dpy, XVisualInfo* visual, Pixmap pixmap'], 391 'Display* dpy, XVisualInfo* visual, Pixmap pixmap'],
388 ['void', ['glXDestroyGLXPixmap'], 'Display* dpy, GLXPixmap pixmap'], 392 ['void', ['glXDestroyGLXPixmap'], 'Display* dpy, GLXPixmap pixmap'],
389 ['int', ['glXQueryExtension'], 'Display* dpy, int* errorb, int* event'], 393 ['int', ['glXQueryExtension'], 'Display* dpy, int* errorb, int* event'],
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 GenerateSource(source_file, functions, set_name) 658 GenerateSource(source_file, functions, set_name)
655 source_file.close() 659 source_file.close()
656 660
657 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 661 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
658 GenerateMockSource(source_file, GL_FUNCTIONS) 662 GenerateMockSource(source_file, GL_FUNCTIONS)
659 source_file.close() 663 source_file.close()
660 664
661 665
662 if __name__ == '__main__': 666 if __name__ == '__main__':
663 main(sys.argv[1:]) 667 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler_linux.cc ('k') | ui/gfx/gl/gl_context_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698