| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, ' | 92 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, ' |
| 93 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, ' | 93 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, ' |
| 94 'GLbitfield mask, GLenum filter', }, | 94 'GLbitfield mask, GLenum filter', }, |
| 95 { 'return_type': 'void', | 95 { 'return_type': 'void', |
| 96 'names': ['glBlitFramebufferANGLE', 'glBlitFramebuffer'], | 96 'names': ['glBlitFramebufferANGLE', 'glBlitFramebuffer'], |
| 97 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, ' | 97 'arguments': 'GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, ' |
| 98 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, ' | 98 'GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, ' |
| 99 'GLbitfield mask, GLenum filter', }, | 99 'GLbitfield mask, GLenum filter', }, |
| 100 { 'return_type': 'void', | 100 { 'return_type': 'void', |
| 101 'names': ['glBufferData'], | 101 'names': ['glBufferData'], |
| 102 'arguments': 'GLenum target, GLsizei size, const void* data, GLenum usage', }, | 102 'arguments': |
| 103 'GLenum target, GLsizeiptr size, const void* data, GLenum usage', }, |
| 103 { 'return_type': 'void', | 104 { 'return_type': 'void', |
| 104 'names': ['glBufferSubData'], | 105 'names': ['glBufferSubData'], |
| 105 'arguments': 'GLenum target, GLint offset, GLsizei size, const void* data', }, | 106 'arguments': |
| 107 'GLenum target, GLintptr offset, GLsizeiptr size, const void* data', }, |
| 106 { 'return_type': 'GLenum', | 108 { 'return_type': 'GLenum', |
| 107 'names': ['glCheckFramebufferStatusEXT', | 109 'names': ['glCheckFramebufferStatusEXT', |
| 108 'glCheckFramebufferStatus'], | 110 'glCheckFramebufferStatus'], |
| 109 'arguments': 'GLenum target', | 111 'arguments': 'GLenum target', |
| 110 'logging_code': """ | 112 'logging_code': """ |
| 111 GL_SERVICE_LOG("GL_RESULT: " << GLES2Util::GetStringEnum(result)); | 113 GL_SERVICE_LOG("GL_RESULT: " << GLES2Util::GetStringEnum(result)); |
| 112 """, }, | 114 """, }, |
| 113 { 'return_type': 'void', | 115 { 'return_type': 'void', |
| 114 'names': ['glClear'], | 116 'names': ['glClear'], |
| 115 'arguments': 'GLbitfield mask', }, | 117 'arguments': 'GLbitfield mask', }, |
| (...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2047 | 2049 |
| 2048 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2050 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), |
| 2049 'wb') | 2051 'wb') |
| 2050 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2052 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) |
| 2051 source_file.close() | 2053 source_file.close() |
| 2052 return 0 | 2054 return 0 |
| 2053 | 2055 |
| 2054 | 2056 |
| 2055 if __name__ == '__main__': | 2057 if __name__ == '__main__': |
| 2056 sys.exit(main(sys.argv[1:])) | 2058 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |