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

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

Issue 643373003: Add support for all blendmodes if we have GL_KHR_blend_equation_advanced. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing test Created 6 years, 2 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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 'arguments': 'GLenum matrixMode, const GLfloat* m' }, 861 'arguments': 'GLenum matrixMode, const GLfloat* m' },
862 { 'return_type': 'void', 862 { 'return_type': 'void',
863 'known_as': 'glMatrixLoadIdentityEXT', 863 'known_as': 'glMatrixLoadIdentityEXT',
864 'versions': [{ 'name': 'glMatrixLoadIdentityEXT', 864 'versions': [{ 'name': 'glMatrixLoadIdentityEXT',
865 'gl_versions': ['gl4'], 865 'gl_versions': ['gl4'],
866 'extensions': ['GL_EXT_direct_state_access'] }, 866 'extensions': ['GL_EXT_direct_state_access'] },
867 { 'name': 'glMatrixLoadIdentityEXT', 867 { 'name': 'glMatrixLoadIdentityEXT',
868 'gl_versions': ['es3'], 868 'gl_versions': ['es3'],
869 'extensions': ['GL_NV_path_rendering'] }], 869 'extensions': ['GL_NV_path_rendering'] }],
870 'arguments': 'GLenum matrixMode' }, 870 'arguments': 'GLenum matrixMode' },
871 { 'return_type': 'void',
872 'known_as': 'glBlendBarrierNV',
873 'versions': [{ 'name': 'glBlendBarrierNV',
874 'gl_versions': ['gl4'],
875 'extensions': ['GL_NV_blend_equation_advanced'] }],
piman 2014/10/16 20:13:29 If we enable the extension for either GL_NV_blend_
876 'arguments': 'void' },
871 ] 877 ]
872 878
873 OSMESA_FUNCTIONS = [ 879 OSMESA_FUNCTIONS = [
874 { 'return_type': 'OSMesaContext', 880 { 'return_type': 'OSMesaContext',
875 'names': ['OSMesaCreateContext'], 881 'names': ['OSMesaCreateContext'],
876 'arguments': 'GLenum format, OSMesaContext sharelist', }, 882 'arguments': 'GLenum format, OSMesaContext sharelist', },
877 { 'return_type': 'OSMesaContext', 883 { 'return_type': 'OSMesaContext',
878 'names': ['OSMesaCreateContextExt'], 884 'names': ['OSMesaCreateContextExt'],
879 'arguments': 885 'arguments':
880 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, ' 886 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, '
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 2085
2080 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2086 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2081 'wb') 2087 'wb')
2082 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2088 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2083 source_file.close() 2089 source_file.close()
2084 return 0 2090 return 0
2085 2091
2086 2092
2087 if __name__ == '__main__': 2093 if __name__ == '__main__':
2088 sys.exit(main(sys.argv[1:])) 2094 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698