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 optparse | 8 import optparse |
9 import os | 9 import os |
10 import collections | 10 import collections |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 { 'return_type': 'EGLBoolean', | 945 { 'return_type': 'EGLBoolean', |
946 'names': ['eglDestroySyncKHR'], | 946 'names': ['eglDestroySyncKHR'], |
947 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync', | 947 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync', |
948 'other_extensions': ['EGL_KHR_fence_sync'] }, | 948 'other_extensions': ['EGL_KHR_fence_sync'] }, |
949 { 'return_type': 'EGLBoolean', | 949 { 'return_type': 'EGLBoolean', |
950 'names': ['eglGetSyncValuesCHROMIUM'], | 950 'names': ['eglGetSyncValuesCHROMIUM'], |
951 'arguments': | 951 'arguments': |
952 'EGLDisplay dpy, EGLSurface surface, ' | 952 'EGLDisplay dpy, EGLSurface surface, ' |
953 'EGLuint64CHROMIUM* ust, EGLuint64CHROMIUM* msc, ' | 953 'EGLuint64CHROMIUM* ust, EGLuint64CHROMIUM* msc, ' |
954 'EGLuint64CHROMIUM* sbc', }, | 954 'EGLuint64CHROMIUM* sbc', }, |
| 955 { 'return_type': 'EGLint', |
| 956 'names': ['eglWaitSyncKHR'], |
| 957 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync, EGLint flags', |
| 958 'other_extensions': ['EGL_KHR_wait_sync'] }, |
955 ] | 959 ] |
956 | 960 |
957 WGL_FUNCTIONS = [ | 961 WGL_FUNCTIONS = [ |
958 { 'return_type': 'HGLRC', | 962 { 'return_type': 'HGLRC', |
959 'names': ['wglCreateContext'], | 963 'names': ['wglCreateContext'], |
960 'arguments': 'HDC hdc', }, | 964 'arguments': 'HDC hdc', }, |
961 { 'return_type': 'HGLRC', | 965 { 'return_type': 'HGLRC', |
962 'names': ['wglCreateLayerContext'], | 966 'names': ['wglCreateLayerContext'], |
963 'arguments': 'HDC hdc, int iLayerPlane', }, | 967 'arguments': 'HDC hdc, int iLayerPlane', }, |
964 { 'return_type': 'BOOL', | 968 { 'return_type': 'BOOL', |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1828 header_file.close() | 1832 header_file.close() |
1829 | 1833 |
1830 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1834 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
1831 GenerateMockSource(source_file, GL_FUNCTIONS) | 1835 GenerateMockSource(source_file, GL_FUNCTIONS) |
1832 source_file.close() | 1836 source_file.close() |
1833 return 0 | 1837 return 0 |
1834 | 1838 |
1835 | 1839 |
1836 if __name__ == '__main__': | 1840 if __name__ == '__main__': |
1837 sys.exit(main(sys.argv[1:])) | 1841 sys.exit(main(sys.argv[1:])) |
OLD | NEW |