| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 'names': ['glXSwapIntervalEXT'], | 1101 'names': ['glXSwapIntervalEXT'], |
| 1102 'arguments': 'Display* dpy, GLXDrawable drawable, int interval', }, | 1102 'arguments': 'Display* dpy, GLXDrawable drawable, int interval', }, |
| 1103 { 'return_type': 'GLXFBConfig', | 1103 { 'return_type': 'GLXFBConfig', |
| 1104 'names': ['glXGetFBConfigFromVisualSGIX'], | 1104 'names': ['glXGetFBConfigFromVisualSGIX'], |
| 1105 'arguments': 'Display* dpy, XVisualInfo* visualInfo', }, | 1105 'arguments': 'Display* dpy, XVisualInfo* visualInfo', }, |
| 1106 { 'return_type': 'GLXContext', | 1106 { 'return_type': 'GLXContext', |
| 1107 'names': ['glXCreateContextAttribsARB'], | 1107 'names': ['glXCreateContextAttribsARB'], |
| 1108 'arguments': | 1108 'arguments': |
| 1109 'Display* dpy, GLXFBConfig config, GLXContext share_context, int direct, ' | 1109 'Display* dpy, GLXFBConfig config, GLXContext share_context, int direct, ' |
| 1110 'const int* attrib_list', }, | 1110 'const int* attrib_list', }, |
| 1111 { 'return_type': 'bool', |
| 1112 'names': ['glXGetSyncValuesOML'], |
| 1113 'arguments': |
| 1114 'Display* dpy, GLXDrawable drawable, int64* ust, int64* msc, ' |
| 1115 'int64* sbc' }, |
| 1116 { 'return_type': 'bool', |
| 1117 'names': ['glXGetMscRateOML'], |
| 1118 'arguments': |
| 1119 'Display* dpy, GLXDrawable drawable, int32* numerator, ' |
| 1120 'int32* denominator' }, |
| 1111 ] | 1121 ] |
| 1112 | 1122 |
| 1113 FUNCTION_SETS = [ | 1123 FUNCTION_SETS = [ |
| 1114 [GL_FUNCTIONS, 'gl', ['../../third_party/mesa/MesaLib/include/GL/glext.h', | 1124 [GL_FUNCTIONS, 'gl', ['../../third_party/mesa/MesaLib/include/GL/glext.h', |
| 1115 '../../third_party/khronos/GLES2/gl2ext.h'], []], | 1125 '../../third_party/khronos/GLES2/gl2ext.h'], []], |
| 1116 [OSMESA_FUNCTIONS, 'osmesa', [], []], | 1126 [OSMESA_FUNCTIONS, 'osmesa', [], []], |
| 1117 [EGL_FUNCTIONS, 'egl', ['../../third_party/khronos/EGL/eglext.h'], | 1127 [EGL_FUNCTIONS, 'egl', ['../../third_party/khronos/EGL/eglext.h'], |
| 1118 [ | 1128 [ |
| 1119 'EGL_ANGLE_d3d_share_handle_client_buffer', | 1129 'EGL_ANGLE_d3d_share_handle_client_buffer', |
| 1120 'EGL_ANGLE_surface_d3d_texture_2d_share_handle', | 1130 'EGL_ANGLE_surface_d3d_texture_2d_share_handle', |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1648 source_file.close() | 1658 source_file.close() |
| 1649 | 1659 |
| 1650 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1660 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
| 1651 GenerateMockSource(source_file, GL_FUNCTIONS) | 1661 GenerateMockSource(source_file, GL_FUNCTIONS) |
| 1652 source_file.close() | 1662 source_file.close() |
| 1653 return 0 | 1663 return 0 |
| 1654 | 1664 |
| 1655 | 1665 |
| 1656 if __name__ == '__main__': | 1666 if __name__ == '__main__': |
| 1657 sys.exit(main(sys.argv[1:])) | 1667 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |