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

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

Issue 11428140: gpu: Add async pixel transfer interface, stub and tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Fix lint. Created 8 years 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
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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 'names': ['eglGetProcAddress'], 895 'names': ['eglGetProcAddress'],
896 'arguments': 'const char* procname', }, 896 'arguments': 'const char* procname', },
897 { 'return_type': 'EGLBoolean', 897 { 'return_type': 'EGLBoolean',
898 'names': ['eglPostSubBufferNV'], 898 'names': ['eglPostSubBufferNV'],
899 'arguments': 'EGLDisplay dpy, EGLSurface surface, ' 899 'arguments': 'EGLDisplay dpy, EGLSurface surface, '
900 'EGLint x, EGLint y, EGLint width, EGLint height', }, 900 'EGLint x, EGLint y, EGLint width, EGLint height', },
901 { 'return_type': 'EGLBoolean', 901 { 'return_type': 'EGLBoolean',
902 'names': ['eglQuerySurfacePointerANGLE'], 902 'names': ['eglQuerySurfacePointerANGLE'],
903 'arguments': 903 'arguments':
904 'EGLDisplay dpy, EGLSurface surface, EGLint attribute, void** value', }, 904 'EGLDisplay dpy, EGLSurface surface, EGLint attribute, void** value', },
905 { 'return_type': 'EGLSyncKHR',
906 'names': ['eglCreateSyncKHR'],
907 'arguments': 'EGLDisplay dpy, EGLenum type, const EGLint* attrib_list', },
908 { 'return_type': 'EGLint',
909 'names': ['eglClientWaitSyncKHR'],
910 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, '
911 'EGLTimeKHR timeout', },
905 ] 912 ]
906 913
907 WGL_FUNCTIONS = [ 914 WGL_FUNCTIONS = [
908 { 'return_type': 'HGLRC', 915 { 'return_type': 'HGLRC',
909 'names': ['wglCreateContext'], 916 'names': ['wglCreateContext'],
910 'arguments': 'HDC hdc', }, 917 'arguments': 'HDC hdc', },
911 { 'return_type': 'HGLRC', 918 { 'return_type': 'HGLRC',
912 'names': ['wglCreateLayerContext'], 919 'names': ['wglCreateLayerContext'],
913 'arguments': 'HDC hdc, int iLayerPlane', }, 920 'arguments': 'HDC hdc, int iLayerPlane', },
914 { 'return_type': 'BOOL', 921 { 'return_type': 'BOOL',
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 header_file.close() 1731 header_file.close()
1725 1732
1726 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 1733 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
1727 GenerateMockSource(source_file, GL_FUNCTIONS) 1734 GenerateMockSource(source_file, GL_FUNCTIONS)
1728 source_file.close() 1735 source_file.close()
1729 return 0 1736 return 0
1730 1737
1731 1738
1732 if __name__ == '__main__': 1739 if __name__ == '__main__':
1733 sys.exit(main(sys.argv[1:])) 1740 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698