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

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

Issue 8423038: Move GL headers from gpu to third_party/khronos (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed mac_rel build failure Created 9 years 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 | « third_party/khronos/README.chromium ('k') | ui/gfx/gl/gl.gyp » ('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) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 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 os 8 import os
9 import collections 9 import collections
10 import re 10 import re
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 'Display* dpy, GLXDrawable drawable, int interval'], 465 'Display* dpy, GLXDrawable drawable, int interval'],
466 ['GLXFBConfig', ['glXGetFBConfigFromVisualSGIX'], 466 ['GLXFBConfig', ['glXGetFBConfigFromVisualSGIX'],
467 'Display* dpy, XVisualInfo* visualInfo'], 467 'Display* dpy, XVisualInfo* visualInfo'],
468 ['GLXContext', ['glXCreateContextAttribsARB'], 468 ['GLXContext', ['glXCreateContextAttribsARB'],
469 'Display* dpy, GLXFBConfig config, GLXContext share_context, int direct, ' 469 'Display* dpy, GLXFBConfig config, GLXContext share_context, int direct, '
470 'const int* attrib_list'], 470 'const int* attrib_list'],
471 ] 471 ]
472 472
473 FUNCTION_SETS = [ 473 FUNCTION_SETS = [
474 [GL_FUNCTIONS, 'gl', ['../../../third_party/mesa/MesaLib/include/GL/glext.h', 474 [GL_FUNCTIONS, 'gl', ['../../../third_party/mesa/MesaLib/include/GL/glext.h',
475 '../../../gpu/GLES2/gl2ext.h']], 475 '../../../third_party/khronos/GLES2/gl2ext.h']],
476 [OSMESA_FUNCTIONS, 'osmesa', []], 476 [OSMESA_FUNCTIONS, 'osmesa', []],
477 [EGL_FUNCTIONS, 'egl', ['../../../gpu/EGL/eglext.h']], 477 [EGL_FUNCTIONS, 'egl', ['../../../third_party/khronos/EGL/eglext.h']],
478 [WGL_FUNCTIONS, 'wgl', [ 478 [WGL_FUNCTIONS, 'wgl', [
479 '../../../third_party/mesa/MesaLib/include/GL/wglext.h']], 479 '../../../third_party/mesa/MesaLib/include/GL/wglext.h']],
480 [GLX_FUNCTIONS, 'glx', [ 480 [GLX_FUNCTIONS, 'glx', [
481 '../../../third_party/mesa/MesaLib/include/GL/glxext.h']], 481 '../../../third_party/mesa/MesaLib/include/GL/glxext.h']],
482 ] 482 ]
483 483
484 484
485 def GenerateHeader(file, functions, set_name, used_extension_functions): 485 def GenerateHeader(file, functions, set_name, used_extension_functions):
486 """Generates gl_binding_autogen_x.h""" 486 """Generates gl_binding_autogen_x.h"""
487 487
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 source_file.close() 892 source_file.close()
893 893
894 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 894 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
895 GenerateMockSource(source_file, GL_FUNCTIONS) 895 GenerateMockSource(source_file, GL_FUNCTIONS)
896 source_file.close() 896 source_file.close()
897 return 0 897 return 0
898 898
899 899
900 if __name__ == '__main__': 900 if __name__ == '__main__':
901 sys.exit(main(sys.argv[1:])) 901 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « third_party/khronos/README.chromium ('k') | ui/gfx/gl/gl.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698