| 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 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 { 'return_type': 'EGLBoolean', | 1812 { 'return_type': 'EGLBoolean', |
| 1813 'names': ['eglDestroySurface'], | 1813 'names': ['eglDestroySurface'], |
| 1814 'arguments': 'EGLDisplay dpy, EGLSurface surface', }, | 1814 'arguments': 'EGLDisplay dpy, EGLSurface surface', }, |
| 1815 { 'return_type': 'EGLBoolean', | 1815 { 'return_type': 'EGLBoolean', |
| 1816 'versions': [{ 'name': 'eglDestroySyncKHR', | 1816 'versions': [{ 'name': 'eglDestroySyncKHR', |
| 1817 'extensions': [ | 1817 'extensions': [ |
| 1818 'EGL_KHR_fence_sync', | 1818 'EGL_KHR_fence_sync', |
| 1819 'GL_CHROMIUM_egl_khr_fence_sync_hack' | 1819 'GL_CHROMIUM_egl_khr_fence_sync_hack' |
| 1820 ] }], | 1820 ] }], |
| 1821 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync' }, | 1821 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync' }, |
| 1822 { 'return_type': 'EGLint', |
| 1823 'versions': [{ 'name': 'eglDupNativeFenceFDANDROID', |
| 1824 'extensions': ['EGL_ANDROID_native_fence_sync'] }], |
| 1825 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync' }, |
| 1822 { 'return_type': 'EGLBoolean', | 1826 { 'return_type': 'EGLBoolean', |
| 1823 'names': ['eglGetConfigAttrib'], | 1827 'names': ['eglGetConfigAttrib'], |
| 1824 'arguments': | 1828 'arguments': |
| 1825 'EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint* value', }, | 1829 'EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint* value', }, |
| 1826 { 'return_type': 'EGLBoolean', | 1830 { 'return_type': 'EGLBoolean', |
| 1827 'names': ['eglGetConfigs'], | 1831 'names': ['eglGetConfigs'], |
| 1828 'arguments': 'EGLDisplay dpy, EGLConfig* configs, EGLint config_size, ' | 1832 'arguments': 'EGLDisplay dpy, EGLConfig* configs, EGLint config_size, ' |
| 1829 'EGLint* num_config', }, | 1833 'EGLint* num_config', }, |
| 1830 { 'return_type': 'EGLContext', | 1834 { 'return_type': 'EGLContext', |
| 1831 'names': ['eglGetCurrentContext'], | 1835 'names': ['eglGetCurrentContext'], |
| (...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3315 header_file = open( | 3319 header_file = open( |
| 3316 os.path.join(directory, 'gl_stub_autogen_gl.cc'), 'wb') | 3320 os.path.join(directory, 'gl_stub_autogen_gl.cc'), 'wb') |
| 3317 GenerateStubSource(header_file, GL_FUNCTIONS) | 3321 GenerateStubSource(header_file, GL_FUNCTIONS) |
| 3318 header_file.close() | 3322 header_file.close() |
| 3319 ClangFormat(header_file.name) | 3323 ClangFormat(header_file.name) |
| 3320 return 0 | 3324 return 0 |
| 3321 | 3325 |
| 3322 | 3326 |
| 3323 if __name__ == '__main__': | 3327 if __name__ == '__main__': |
| 3324 sys.exit(main(sys.argv[1:])) | 3328 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |