| 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 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1353 'names': ['eglWaitClient'], | 1353 'names': ['eglWaitClient'], |
| 1354 'arguments': 'void', }, | 1354 'arguments': 'void', }, |
| 1355 { 'return_type': 'EGLBoolean', | 1355 { 'return_type': 'EGLBoolean', |
| 1356 'names': ['eglWaitGL'], | 1356 'names': ['eglWaitGL'], |
| 1357 'arguments': 'void', }, | 1357 'arguments': 'void', }, |
| 1358 { 'return_type': 'EGLBoolean', | 1358 { 'return_type': 'EGLBoolean', |
| 1359 'names': ['eglWaitNative'], | 1359 'names': ['eglWaitNative'], |
| 1360 'arguments': 'EGLint engine', }, | 1360 'arguments': 'EGLint engine', }, |
| 1361 { 'return_type': 'EGLint', | 1361 { 'return_type': 'EGLint', |
| 1362 'versions': [{ 'name': 'eglWaitSyncKHR', | 1362 'versions': [{ 'name': 'eglWaitSyncKHR', |
| 1363 'extensions': ['EGL_KHR_fence_sync', 'EGL_KHR_wait_sync'] }], | 1363 'extensions': ['EGL_KHR_wait_sync'] }], |
| 1364 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync, EGLint flags' }, | 1364 'arguments': 'EGLDisplay dpy, EGLSyncKHR sync, EGLint flags' }, |
| 1365 ] | 1365 ] |
| 1366 | 1366 |
| 1367 WGL_FUNCTIONS = [ | 1367 WGL_FUNCTIONS = [ |
| 1368 { 'return_type': 'BOOL', | 1368 { 'return_type': 'BOOL', |
| 1369 'names': ['wglChoosePixelFormatARB'], | 1369 'names': ['wglChoosePixelFormatARB'], |
| 1370 'arguments': | 1370 'arguments': |
| 1371 'HDC dc, const int* int_attrib_list, const float* float_attrib_list, ' | 1371 'HDC dc, const int* int_attrib_list, const float* float_attrib_list, ' |
| 1372 'UINT max_formats, int* formats, UINT* num_formats', }, | 1372 'UINT max_formats, int* formats, UINT* num_formats', }, |
| 1373 { 'return_type': 'BOOL', | 1373 { 'return_type': 'BOOL', |
| (...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2550 'gl_enums_implementation_autogen.h'), | 2550 'gl_enums_implementation_autogen.h'), |
| 2551 'wb') | 2551 'wb') |
| 2552 GenerateEnumUtils(header_file, enum_header_filenames) | 2552 GenerateEnumUtils(header_file, enum_header_filenames) |
| 2553 header_file.close() | 2553 header_file.close() |
| 2554 ClangFormat(header_file.name) | 2554 ClangFormat(header_file.name) |
| 2555 return 0 | 2555 return 0 |
| 2556 | 2556 |
| 2557 | 2557 |
| 2558 if __name__ == '__main__': | 2558 if __name__ == '__main__': |
| 2559 sys.exit(main(sys.argv[1:])) | 2559 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |