| 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 os | 8 import os |
| 9 import collections | 9 import collections |
| 10 import re | 10 import re |
| (...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 'arguments': 'HPBUFFERARB hPbuffer, HDC hDC', }, | 954 'arguments': 'HPBUFFERARB hPbuffer, HDC hDC', }, |
| 955 { 'return_type': 'BOOL', | 955 { 'return_type': 'BOOL', |
| 956 'names': ['wglDestroyPbufferARB'], | 956 'names': ['wglDestroyPbufferARB'], |
| 957 'arguments': 'HPBUFFERARB hPbuffer', }, | 957 'arguments': 'HPBUFFERARB hPbuffer', }, |
| 958 { 'return_type': 'BOOL', | 958 { 'return_type': 'BOOL', |
| 959 'names': ['wglQueryPbufferARB'], | 959 'names': ['wglQueryPbufferARB'], |
| 960 'arguments': 'HPBUFFERARB hPbuffer, int iAttribute, int* piValue', }, | 960 'arguments': 'HPBUFFERARB hPbuffer, int iAttribute, int* piValue', }, |
| 961 ] | 961 ] |
| 962 | 962 |
| 963 GLX_FUNCTIONS = [ | 963 GLX_FUNCTIONS = [ |
| 964 { 'return_type': 'int', |
| 965 'names': ['glXWaitVideoSyncSGI'], |
| 966 'arguments': 'int divisor, int remainder, unsigned int* count', }, |
| 964 { 'return_type': 'XVisualInfo*', | 967 { 'return_type': 'XVisualInfo*', |
| 965 'names': ['glXChooseVisual'], | 968 'names': ['glXChooseVisual'], |
| 966 'arguments': 'Display* dpy, int screen, int* attribList', }, | 969 'arguments': 'Display* dpy, int screen, int* attribList', }, |
| 967 { 'return_type': 'void', | 970 { 'return_type': 'void', |
| 968 'names': ['glXCopySubBufferMESA'], | 971 'names': ['glXCopySubBufferMESA'], |
| 969 'arguments': 'Display* dpy, GLXDrawable drawable, ' | 972 'arguments': 'Display* dpy, GLXDrawable drawable, ' |
| 970 'int x, int y, int width, int height', }, | 973 'int x, int y, int width, int height', }, |
| 971 { 'return_type': 'GLXContext', | 974 { 'return_type': 'GLXContext', |
| 972 'names': ['glXCreateContext'], | 975 'names': ['glXCreateContext'], |
| 973 'arguments': | 976 'arguments': |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 source_file.close() | 1656 source_file.close() |
| 1654 | 1657 |
| 1655 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1658 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
| 1656 GenerateMockSource(source_file, GL_FUNCTIONS) | 1659 GenerateMockSource(source_file, GL_FUNCTIONS) |
| 1657 source_file.close() | 1660 source_file.close() |
| 1658 return 0 | 1661 return 0 |
| 1659 | 1662 |
| 1660 | 1663 |
| 1661 if __name__ == '__main__': | 1664 if __name__ == '__main__': |
| 1662 sys.exit(main(sys.argv[1:])) | 1665 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |