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

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

Issue 11195011: Send vsync timebase updates to the browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work-in-progress Created 8 years, 1 month 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
OLDNEW
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
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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 source_file.close() 1588 source_file.close()
1579 1589
1580 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 1590 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
1581 GenerateMockSource(source_file, GL_FUNCTIONS) 1591 GenerateMockSource(source_file, GL_FUNCTIONS)
1582 source_file.close() 1592 source_file.close()
1583 return 0 1593 return 0
1584 1594
1585 1595
1586 if __name__ == '__main__': 1596 if __name__ == '__main__':
1587 sys.exit(main(sys.argv[1:])) 1597 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698