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

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

Issue 23855003: gpu: Map glDiscardFramebufferEXT to glInvalidateFramebuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 'ARB_vertex_array_object'] }, 740 'ARB_vertex_array_object'] },
741 { 'return_type': 'GLboolean', 741 { 'return_type': 'GLboolean',
742 'names': ['glIsVertexArrayOES', 742 'names': ['glIsVertexArrayOES',
743 'glIsVertexArrayAPPLE', 743 'glIsVertexArrayAPPLE',
744 'glIsVertexArray'], 744 'glIsVertexArray'],
745 'arguments': 'GLuint array', 745 'arguments': 'GLuint array',
746 'other_extensions': ['OES_vertex_array_object', 746 'other_extensions': ['OES_vertex_array_object',
747 'APPLE_vertex_array_object', 747 'APPLE_vertex_array_object',
748 'ARB_vertex_array_object'] }, 748 'ARB_vertex_array_object'] },
749 { 'return_type': 'void', 749 { 'return_type': 'void',
750 'names': ['glDiscardFramebufferEXT'], 750 'names': ['glDiscardFramebufferEXT', 'glInvalidateFramebuffer'],
751 'arguments': 'GLenum target, GLsizei numAttachments, ' 751 'arguments': 'GLenum target, GLsizei numAttachments, '
752 'const GLenum* attachments' }, 752 'const GLenum* attachments' },
753 ] 753 ]
754 754
755 OSMESA_FUNCTIONS = [ 755 OSMESA_FUNCTIONS = [
756 { 'return_type': 'OSMesaContext', 756 { 'return_type': 'OSMesaContext',
757 'names': ['OSMesaCreateContext'], 757 'names': ['OSMesaCreateContext'],
758 'arguments': 'GLenum format, OSMesaContext sharelist', }, 758 'arguments': 'GLenum format, OSMesaContext sharelist', },
759 { 'return_type': 'OSMesaContext', 759 { 'return_type': 'OSMesaContext',
760 'names': ['OSMesaCreateContextExt'], 760 'names': ['OSMesaCreateContextExt'],
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1828 header_file.close() 1828 header_file.close()
1829 1829
1830 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 1830 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
1831 GenerateMockSource(source_file, GL_FUNCTIONS) 1831 GenerateMockSource(source_file, GL_FUNCTIONS)
1832 source_file.close() 1832 source_file.close()
1833 return 0 1833 return 0
1834 1834
1835 1835
1836 if __name__ == '__main__': 1836 if __name__ == '__main__':
1837 sys.exit(main(sys.argv[1:])) 1837 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698