| 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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 588   'names': ['glLineWidth'], | 588   'names': ['glLineWidth'], | 
| 589   'arguments': 'GLfloat width', }, | 589   'arguments': 'GLfloat width', }, | 
| 590 { 'return_type': 'void', | 590 { 'return_type': 'void', | 
| 591   'names': ['glLinkProgram'], | 591   'names': ['glLinkProgram'], | 
| 592   'arguments': 'GLuint program', }, | 592   'arguments': 'GLuint program', }, | 
| 593 { 'return_type': 'void*', | 593 { 'return_type': 'void*', | 
| 594   'known_as': 'glMapBuffer', | 594   'known_as': 'glMapBuffer', | 
| 595   'names': ['glMapBufferOES', 'glMapBuffer'], | 595   'names': ['glMapBufferOES', 'glMapBuffer'], | 
| 596   'arguments': 'GLenum target, GLenum access', }, | 596   'arguments': 'GLenum target, GLenum access', }, | 
| 597 { 'return_type': 'void*', | 597 { 'return_type': 'void*', | 
| 598   'names': ['glMapBufferRange'], | 598   'known_as': 'glMapBufferRange', | 
|  | 599   'versions': [{ 'name': 'glMapBufferRange', | 
|  | 600                  'gl_versions': ['gl3', 'gl4', 'es3'] }, | 
|  | 601                { 'name': 'glMapBufferRange', | 
|  | 602                  'extensions': ['GL_ARB_map_buffer_range'] }, | 
|  | 603                { 'name': 'glMapBufferRangeEXT', | 
|  | 604                  'extensions': ['GL_EXT_map_buffer_range'] }], | 
| 599   'arguments': | 605   'arguments': | 
| 600       'GLenum target, GLintptr offset, GLsizeiptr length, GLenum access', }, | 606       'GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access', }, | 
| 601 { 'return_type': 'void', | 607 { 'return_type': 'void', | 
| 602   'known_as': 'glMatrixLoadfEXT', | 608   'known_as': 'glMatrixLoadfEXT', | 
| 603   'versions': [{ 'name': 'glMatrixLoadfEXT', | 609   'versions': [{ 'name': 'glMatrixLoadfEXT', | 
| 604                  'gl_versions': ['gl4'], | 610                  'gl_versions': ['gl4'], | 
| 605                  'extensions': ['GL_EXT_direct_state_access'] }, | 611                  'extensions': ['GL_EXT_direct_state_access'] }, | 
| 606                { 'name': 'glMatrixLoadfEXT', | 612                { 'name': 'glMatrixLoadfEXT', | 
| 607                  'gl_versions': ['es3'], | 613                  'gl_versions': ['es3'], | 
| 608                  'extensions': ['GL_NV_path_rendering'] }], | 614                  'extensions': ['GL_NV_path_rendering'] }], | 
| 609   'arguments': 'GLenum matrixMode, const GLfloat* m' }, | 615   'arguments': 'GLenum matrixMode, const GLfloat* m' }, | 
| 610 { 'return_type': 'void', | 616 { 'return_type': 'void', | 
| (...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2131 | 2137 | 
| 2132     source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2138     source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 
| 2133                        'wb') | 2139                        'wb') | 
| 2134     GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2140     GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 
| 2135     source_file.close() | 2141     source_file.close() | 
| 2136   return 0 | 2142   return 0 | 
| 2137 | 2143 | 
| 2138 | 2144 | 
| 2139 if __name__ == '__main__': | 2145 if __name__ == '__main__': | 
| 2140   sys.exit(main(sys.argv[1:])) | 2146   sys.exit(main(sys.argv[1:])) | 
| OLD | NEW | 
|---|