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

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

Issue 435383002: adds WARP support to Chromium, for Metro mode only, on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 3 months 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 optparse 8 import optparse
9 import os 9 import os
10 import collections 10 import collections
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 'arguments': 'GLboolean enable', }, 908 'arguments': 'GLboolean enable', },
909 ] 909 ]
910 910
911 EGL_FUNCTIONS = [ 911 EGL_FUNCTIONS = [
912 { 'return_type': 'EGLint', 912 { 'return_type': 'EGLint',
913 'names': ['eglGetError'], 913 'names': ['eglGetError'],
914 'arguments': 'void', }, 914 'arguments': 'void', },
915 { 'return_type': 'EGLDisplay', 915 { 'return_type': 'EGLDisplay',
916 'names': ['eglGetDisplay'], 916 'names': ['eglGetDisplay'],
917 'arguments': 'EGLNativeDisplayType display_id', }, 917 'arguments': 'EGLNativeDisplayType display_id', },
918 { 'return_type': 'EGLDisplay',
919 'known_as': 'eglGetPlatformDisplayEXT',
920 'versions': [{ 'name': 'eglGetPlatformDisplayEXT',
921 'extensions': ['EGL_ANGLE_platform_angle'] }],
922 'arguments': 'EGLenum platform, void* native_display, '
923 'const EGLint* attrib_list', },
918 { 'return_type': 'EGLBoolean', 924 { 'return_type': 'EGLBoolean',
919 'names': ['eglInitialize'], 925 'names': ['eglInitialize'],
920 'arguments': 'EGLDisplay dpy, EGLint* major, EGLint* minor', }, 926 'arguments': 'EGLDisplay dpy, EGLint* major, EGLint* minor', },
921 { 'return_type': 'EGLBoolean', 927 { 'return_type': 'EGLBoolean',
922 'names': ['eglTerminate'], 928 'names': ['eglTerminate'],
923 'arguments': 'EGLDisplay dpy', }, 929 'arguments': 'EGLDisplay dpy', },
924 { 'return_type': 'const char*', 930 { 'return_type': 'const char*',
925 'names': ['eglQueryString'], 931 'names': ['eglQueryString'],
926 'arguments': 'EGLDisplay dpy, EGLint name', }, 932 'arguments': 'EGLDisplay dpy, EGLint name', },
927 { 'return_type': 'EGLBoolean', 933 { 'return_type': 'EGLBoolean',
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
2069 2075
2070 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2076 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2071 'wb') 2077 'wb')
2072 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2078 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2073 source_file.close() 2079 source_file.close()
2074 return 0 2080 return 0
2075 2081
2076 2082
2077 if __name__ == '__main__': 2083 if __name__ == '__main__':
2078 sys.exit(main(sys.argv[1:])) 2084 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698