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

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

Issue 670843002: gpu: Use egl client wait if server wait not available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | ui/gl/gl_fence_egl.cc » ('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 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 'extensions': ['EGL_KHR_fence_sync'] }], 1072 'extensions': ['EGL_KHR_fence_sync'] }],
1073 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync' }, 1073 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync' },
1074 { 'return_type': 'EGLBoolean', 1074 { 'return_type': 'EGLBoolean',
1075 'names': ['eglGetSyncValuesCHROMIUM'], 1075 'names': ['eglGetSyncValuesCHROMIUM'],
1076 'arguments': 1076 'arguments':
1077 'EGLDisplay dpy, EGLSurface surface, ' 1077 'EGLDisplay dpy, EGLSurface surface, '
1078 'EGLuint64CHROMIUM* ust, EGLuint64CHROMIUM* msc, ' 1078 'EGLuint64CHROMIUM* ust, EGLuint64CHROMIUM* msc, '
1079 'EGLuint64CHROMIUM* sbc', }, 1079 'EGLuint64CHROMIUM* sbc', },
1080 { 'return_type': 'EGLint', 1080 { 'return_type': 'EGLint',
1081 'versions': [{ 'name': 'eglWaitSyncKHR', 1081 'versions': [{ 'name': 'eglWaitSyncKHR',
1082 'extensions': ['EGL_KHR_fence_sync'] }], 1082 'extensions': ['EGL_KHR_fence_sync', 'EGL_KHR_wait_sync'] }],
1083 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync, EGLint flags' } 1083 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync, EGLint flags' }
1084 ] 1084 ]
1085 1085
1086 WGL_FUNCTIONS = [ 1086 WGL_FUNCTIONS = [
1087 { 'return_type': 'HGLRC', 1087 { 'return_type': 'HGLRC',
1088 'names': ['wglCreateContext'], 1088 'names': ['wglCreateContext'],
1089 'arguments': 'HDC hdc', }, 1089 'arguments': 'HDC hdc', },
1090 { 'return_type': 'HGLRC', 1090 { 'return_type': 'HGLRC',
1091 'names': ['wglCreateLayerContext'], 1091 'names': ['wglCreateLayerContext'],
1092 'arguments': 'HDC hdc, int iLayerPlane', }, 1092 'arguments': 'HDC hdc, int iLayerPlane', },
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
2080 2080
2081 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2081 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2082 'wb') 2082 'wb')
2083 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2083 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2084 source_file.close() 2084 source_file.close()
2085 return 0 2085 return 0
2086 2086
2087 2087
2088 if __name__ == '__main__': 2088 if __name__ == '__main__':
2089 sys.exit(main(sys.argv[1:])) 2089 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_fence_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698