| OLD | NEW |
| 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 Loading... |
| 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 'other_extensions': ['EGL_KHR_fence_sync'] }, |
| 909 { 'return_type': 'EGLint', |
| 910 'names': ['eglClientWaitSyncKHR'], |
| 911 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, ' |
| 912 'EGLTimeKHR timeout', |
| 913 'other_extensions': ['EGL_KHR_fence_sync'] }, |
| 914 { 'return_type': 'EGLBoolean', |
| 915 'names': ['eglDestroySyncKHR'], |
| 916 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync', |
| 917 'other_extensions': ['EGL_KHR_fence_sync'] }, |
| 905 ] | 918 ] |
| 906 | 919 |
| 907 WGL_FUNCTIONS = [ | 920 WGL_FUNCTIONS = [ |
| 908 { 'return_type': 'HGLRC', | 921 { 'return_type': 'HGLRC', |
| 909 'names': ['wglCreateContext'], | 922 'names': ['wglCreateContext'], |
| 910 'arguments': 'HDC hdc', }, | 923 'arguments': 'HDC hdc', }, |
| 911 { 'return_type': 'HGLRC', | 924 { 'return_type': 'HGLRC', |
| 912 'names': ['wglCreateLayerContext'], | 925 'names': ['wglCreateLayerContext'], |
| 913 'arguments': 'HDC hdc, int iLayerPlane', }, | 926 'arguments': 'HDC hdc, int iLayerPlane', }, |
| 914 { 'return_type': 'BOOL', | 927 { 'return_type': 'BOOL', |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1724 header_file.close() | 1737 header_file.close() |
| 1725 | 1738 |
| 1726 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1739 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
| 1727 GenerateMockSource(source_file, GL_FUNCTIONS) | 1740 GenerateMockSource(source_file, GL_FUNCTIONS) |
| 1728 source_file.close() | 1741 source_file.close() |
| 1729 return 0 | 1742 return 0 |
| 1730 | 1743 |
| 1731 | 1744 |
| 1732 if __name__ == '__main__': | 1745 if __name__ == '__main__': |
| 1733 sys.exit(main(sys.argv[1:])) | 1746 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |