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

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: renamed switch 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
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 'arguments': 'GLboolean enable', }, 909 'arguments': 'GLboolean enable', },
910 ] 910 ]
911 911
912 EGL_FUNCTIONS = [ 912 EGL_FUNCTIONS = [
913 { 'return_type': 'EGLint', 913 { 'return_type': 'EGLint',
914 'names': ['eglGetError'], 914 'names': ['eglGetError'],
915 'arguments': 'void', }, 915 'arguments': 'void', },
916 { 'return_type': 'EGLDisplay', 916 { 'return_type': 'EGLDisplay',
917 'names': ['eglGetDisplay'], 917 'names': ['eglGetDisplay'],
918 'arguments': 'EGLNativeDisplayType display_id', }, 918 'arguments': 'EGLNativeDisplayType display_id', },
919 { 'return_type': 'EGLDisplay',
920 'known_as': 'eglGetPlatformDisplayEXT',
921 'versions': [{ 'name': 'eglGetPlatformDisplayEXT',
922 'extensions': ['EGL_ANGLE_platform_angle'] }],
923 'arguments': 'EGLenum platform, void* native_display, '
924 'const EGLint* attrib_list', },
919 { 'return_type': 'EGLBoolean', 925 { 'return_type': 'EGLBoolean',
920 'names': ['eglInitialize'], 926 'names': ['eglInitialize'],
921 'arguments': 'EGLDisplay dpy, EGLint* major, EGLint* minor', }, 927 'arguments': 'EGLDisplay dpy, EGLint* major, EGLint* minor', },
922 { 'return_type': 'EGLBoolean', 928 { 'return_type': 'EGLBoolean',
923 'names': ['eglTerminate'], 929 'names': ['eglTerminate'],
924 'arguments': 'EGLDisplay dpy', }, 930 'arguments': 'EGLDisplay dpy', },
925 { 'return_type': 'const char*', 931 { 'return_type': 'const char*',
926 'names': ['eglQueryString'], 932 'names': ['eglQueryString'],
927 'arguments': 'EGLDisplay dpy, EGLint name', }, 933 'arguments': 'EGLDisplay dpy, EGLint name', },
928 { 'return_type': 'EGLBoolean', 934 { 'return_type': 'EGLBoolean',
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
2070 2076
2071 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2077 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2072 'wb') 2078 'wb')
2073 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2079 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2074 source_file.close() 2080 source_file.close()
2075 return 0 2081 return 0
2076 2082
2077 2083
2078 if __name__ == '__main__': 2084 if __name__ == '__main__':
2079 sys.exit(main(sys.argv[1:])) 2085 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « ui/base/ui_base_switches.cc ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698