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

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

Issue 169603002: Add initial support for NV_path_rendering extension to gpu command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 'arguments': 'GLuint array' }, 825 'arguments': 'GLuint array' },
826 { 'return_type': 'void', 826 { 'return_type': 'void',
827 'known_as': 'glDiscardFramebufferEXT', 827 'known_as': 'glDiscardFramebufferEXT',
828 'versions': [{ 'name': 'glInvalidateFramebuffer', 828 'versions': [{ 'name': 'glInvalidateFramebuffer',
829 'gl_versions': ['es3'], 829 'gl_versions': ['es3'],
830 'extensions': [] }, 830 'extensions': [] },
831 { 'name': 'glDiscardFramebufferEXT', 831 { 'name': 'glDiscardFramebufferEXT',
832 'gl_versions': ['es1', 'es2'] }], 832 'gl_versions': ['es1', 'es2'] }],
833 'arguments': 'GLenum target, GLsizei numAttachments, ' 833 'arguments': 'GLenum target, GLsizei numAttachments, '
834 'const GLenum* attachments' }, 834 'const GLenum* attachments' },
835 { 'return_type': 'void',
836 'known_as': 'glMatrixLoadfEXT',
837 'versions': [{ 'name': 'glMatrixLoadfEXT',
838 'gl_versions': ['gl4'],
839 'extensions': ['GL_EXT_direct_state_access'] }],
840 'arguments': 'GLenum matrixMode, const GLfloat* m' },
841 { 'return_type': 'void',
842 'known_as': 'glMatrixLoadIdentityEXT',
843 'versions': [{ 'name': 'glMatrixLoadIdentityEXT',
844 'gl_versions': ['gl4'],
845 'extensions': ['GL_EXT_direct_state_access'] }],
846 'arguments': 'GLenum matrixMode' },
835 ] 847 ]
836 848
837 OSMESA_FUNCTIONS = [ 849 OSMESA_FUNCTIONS = [
838 { 'return_type': 'OSMesaContext', 850 { 'return_type': 'OSMesaContext',
839 'names': ['OSMesaCreateContext'], 851 'names': ['OSMesaCreateContext'],
840 'arguments': 'GLenum format, OSMesaContext sharelist', }, 852 'arguments': 'GLenum format, OSMesaContext sharelist', },
841 { 'return_type': 'OSMesaContext', 853 { 'return_type': 'OSMesaContext',
842 'names': ['OSMesaCreateContextExt'], 854 'names': ['OSMesaCreateContextExt'],
843 'arguments': 855 'arguments':
844 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, ' 856 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, '
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2044 2056
2045 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2057 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2046 'wb') 2058 'wb')
2047 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2059 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2048 source_file.close() 2060 source_file.close()
2049 return 0 2061 return 0
2050 2062
2051 2063
2052 if __name__ == '__main__': 2064 if __name__ == '__main__':
2053 sys.exit(main(sys.argv[1:])) 2065 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698