Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: ui/gl/generate_bindings.py

Issue 2017623002: Create core profile contexts with WGL when --enable-unsafe-es3-apis is used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/gl/gl_bindings_api_autogen_wgl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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:]))
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_bindings_api_autogen_wgl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698