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

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: codereview fixes 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': 'glBlendBarrierKHR',
873 'versions': [{ 'name': 'glBlendBarrierNV',
874 'gl_versions': ['es2', 'gl2'],
piman 2014/10/17 21:36:29 If you list versions, you have to list explicitly
Erik Dahlström (inactive) 2014/10/20 15:32:21 Done.
875 'extensions': ['GL_NV_blend_equation_advanced'] },
876 { 'name': 'glBlendBarrierKHR',
877 'gl_versions': ['es2', 'gl2'],
piman 2014/10/17 21:36:29 (same here).
Erik Dahlström (inactive) 2014/10/20 15:32:21 Done.
878 'extensions': ['GL_KHR_blend_equation_advanced'] }],
879 'arguments': 'void' },
871 ] 880 ]
872 881
873 OSMESA_FUNCTIONS = [ 882 OSMESA_FUNCTIONS = [
874 { 'return_type': 'OSMesaContext', 883 { 'return_type': 'OSMesaContext',
875 'names': ['OSMesaCreateContext'], 884 'names': ['OSMesaCreateContext'],
876 'arguments': 'GLenum format, OSMesaContext sharelist', }, 885 'arguments': 'GLenum format, OSMesaContext sharelist', },
877 { 'return_type': 'OSMesaContext', 886 { 'return_type': 'OSMesaContext',
878 'names': ['OSMesaCreateContextExt'], 887 'names': ['OSMesaCreateContextExt'],
879 'arguments': 888 'arguments':
880 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, ' 889 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, '
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 2088
2080 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2089 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2081 'wb') 2090 'wb')
2082 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2091 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2083 source_file.close() 2092 source_file.close()
2084 return 0 2093 return 0
2085 2094
2086 2095
2087 if __name__ == '__main__': 2096 if __name__ == '__main__':
2088 sys.exit(main(sys.argv[1:])) 2097 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698