| 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 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 'arguments': | 1580 'arguments': |
| 1581 'HDC dc, const int* int_attrib_list, const float* float_attrib_list, ' | 1581 'HDC dc, const int* int_attrib_list, const float* float_attrib_list, ' |
| 1582 'UINT max_formats, int* formats, UINT* num_formats', }, | 1582 'UINT max_formats, int* formats, UINT* num_formats', }, |
| 1583 { 'return_type': 'BOOL', | 1583 { 'return_type': 'BOOL', |
| 1584 'names': ['wglCopyContext'], | 1584 'names': ['wglCopyContext'], |
| 1585 'arguments': 'HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask', }, | 1585 'arguments': 'HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask', }, |
| 1586 { 'return_type': 'HGLRC', | 1586 { 'return_type': 'HGLRC', |
| 1587 'names': ['wglCreateContext'], | 1587 'names': ['wglCreateContext'], |
| 1588 'arguments': 'HDC hdc', }, | 1588 'arguments': 'HDC hdc', }, |
| 1589 { 'return_type': 'HGLRC', | 1589 { 'return_type': 'HGLRC', |
| 1590 'names': ['wglCreateContextAttribsARB'], |
| 1591 'arguments': 'HDC hDC, HGLRC hShareContext, const int* attribList', }, |
| 1592 { 'return_type': 'HGLRC', |
| 1590 'names': ['wglCreateLayerContext'], | 1593 'names': ['wglCreateLayerContext'], |
| 1591 'arguments': 'HDC hdc, int iLayerPlane', }, | 1594 'arguments': 'HDC hdc, int iLayerPlane', }, |
| 1592 { 'return_type': 'HPBUFFERARB', | 1595 { 'return_type': 'HPBUFFERARB', |
| 1593 'names': ['wglCreatePbufferARB'], | 1596 'names': ['wglCreatePbufferARB'], |
| 1594 'arguments': 'HDC hDC, int iPixelFormat, int iWidth, int iHeight, ' | 1597 'arguments': 'HDC hDC, int iPixelFormat, int iWidth, int iHeight, ' |
| 1595 'const int* piAttribList', }, | 1598 'const int* piAttribList', }, |
| 1596 { 'return_type': 'BOOL', | 1599 { 'return_type': 'BOOL', |
| 1597 'names': ['wglDeleteContext'], | 1600 'names': ['wglDeleteContext'], |
| 1598 'arguments': 'HGLRC hglrc', }, | 1601 'arguments': 'HGLRC hglrc', }, |
| 1599 { 'return_type': 'BOOL', | 1602 { 'return_type': 'BOOL', |
| (...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2845 'gl_enums_implementation_autogen.h'), | 2848 'gl_enums_implementation_autogen.h'), |
| 2846 'wb') | 2849 'wb') |
| 2847 GenerateEnumUtils(header_file, enum_header_filenames) | 2850 GenerateEnumUtils(header_file, enum_header_filenames) |
| 2848 header_file.close() | 2851 header_file.close() |
| 2849 ClangFormat(header_file.name) | 2852 ClangFormat(header_file.name) |
| 2850 return 0 | 2853 return 0 |
| 2851 | 2854 |
| 2852 | 2855 |
| 2853 if __name__ == '__main__': | 2856 if __name__ == '__main__': |
| 2854 sys.exit(main(sys.argv[1:])) | 2857 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |