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' }, |
1111 ] | 1116 ] |
1112 | 1117 |
1113 FUNCTION_SETS = [ | 1118 FUNCTION_SETS = [ |
1114 [GL_FUNCTIONS, 'gl', ['../../third_party/mesa/MesaLib/include/GL/glext.h', | 1119 [GL_FUNCTIONS, 'gl', ['../../third_party/mesa/MesaLib/include/GL/glext.h', |
1115 '../../third_party/khronos/GLES2/gl2ext.h'], []], | 1120 '../../third_party/khronos/GLES2/gl2ext.h'], []], |
1116 [OSMESA_FUNCTIONS, 'osmesa', [], []], | 1121 [OSMESA_FUNCTIONS, 'osmesa', [], []], |
1117 [EGL_FUNCTIONS, 'egl', ['../../third_party/khronos/EGL/eglext.h'], | 1122 [EGL_FUNCTIONS, 'egl', ['../../third_party/khronos/EGL/eglext.h'], |
1118 [ | 1123 [ |
1119 'EGL_ANGLE_d3d_share_handle_client_buffer', | 1124 'EGL_ANGLE_d3d_share_handle_client_buffer', |
1120 'EGL_ANGLE_surface_d3d_texture_2d_share_handle', | 1125 'EGL_ANGLE_surface_d3d_texture_2d_share_handle', |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 source_file.close() | 1583 source_file.close() |
1579 | 1584 |
1580 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1585 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
1581 GenerateMockSource(source_file, GL_FUNCTIONS) | 1586 GenerateMockSource(source_file, GL_FUNCTIONS) |
1582 source_file.close() | 1587 source_file.close() |
1583 return 0 | 1588 return 0 |
1584 | 1589 |
1585 | 1590 |
1586 if __name__ == '__main__': | 1591 if __name__ == '__main__': |
1587 sys.exit(main(sys.argv[1:])) | 1592 sys.exit(main(sys.argv[1:])) |
OLD | NEW |