| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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:])) |
| OLD | NEW |