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

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

Issue 489023002: gpu: Enable relevant extentions on GLES3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest failure; exclude EXT_draw_buffers Created 6 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
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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 'GLsizei primcount', }, 787 'GLsizei primcount', },
788 { 'return_type': 'void', 788 { 'return_type': 'void',
789 'known_as': 'glVertexAttribDivisorANGLE', 789 'known_as': 'glVertexAttribDivisorANGLE',
790 'names': ['glVertexAttribDivisorARB', 'glVertexAttribDivisorANGLE', 790 'names': ['glVertexAttribDivisorARB', 'glVertexAttribDivisorANGLE',
791 'glVertexAttribDivisor'], 791 'glVertexAttribDivisor'],
792 'arguments': 792 'arguments':
793 'GLuint index, GLuint divisor', }, 793 'GLuint index, GLuint divisor', },
794 { 'return_type': 'void', 794 { 'return_type': 'void',
795 'known_as': 'glGenVertexArraysOES', 795 'known_as': 'glGenVertexArraysOES',
796 'versions': [{ 'name': 'glGenVertexArrays', 796 'versions': [{ 'name': 'glGenVertexArrays',
797 'gl_versions': ['gl3', 'gl4'] }, 797 'gl_versions': ['gl3', 'gl4', 'es3'] },
798 { 'name': 'glGenVertexArrays', 798 { 'name': 'glGenVertexArrays',
799 'extensions': ['GL_ARB_vertex_array_object'] }, 799 'extensions': ['GL_ARB_vertex_array_object'] },
800 { 'name': 'glGenVertexArraysOES' }, 800 { 'name': 'glGenVertexArraysOES' },
801 { 'name': 'glGenVertexArraysAPPLE', 801 { 'name': 'glGenVertexArraysAPPLE',
802 'extensions': ['GL_APPLE_vertex_array_object'] }], 802 'extensions': ['GL_APPLE_vertex_array_object'] }],
803 'arguments': 'GLsizei n, GLuint* arrays', }, 803 'arguments': 'GLsizei n, GLuint* arrays', },
804 { 'return_type': 'void', 804 { 'return_type': 'void',
805 'known_as': 'glDeleteVertexArraysOES', 805 'known_as': 'glDeleteVertexArraysOES',
806 'versions': [{ 'name': 'glDeleteVertexArrays', 806 'versions': [{ 'name': 'glDeleteVertexArrays',
807 'gl_versions': ['gl3', 'gl4'] }, 807 'gl_versions': ['gl3', 'gl4', 'es3'] },
808 { 'name': 'glDeleteVertexArrays', 808 { 'name': 'glDeleteVertexArrays',
809 'extensions': ['GL_ARB_vertex_array_object'] }, 809 'extensions': ['GL_ARB_vertex_array_object'] },
810 { 'name': 'glDeleteVertexArraysOES' }, 810 { 'name': 'glDeleteVertexArraysOES' },
811 { 'name': 'glDeleteVertexArraysAPPLE', 811 { 'name': 'glDeleteVertexArraysAPPLE',
812 'extensions': ['GL_APPLE_vertex_array_object'] }], 812 'extensions': ['GL_APPLE_vertex_array_object'] }],
813 'arguments': 'GLsizei n, const GLuint* arrays' }, 813 'arguments': 'GLsizei n, const GLuint* arrays' },
814 { 'return_type': 'void', 814 { 'return_type': 'void',
815 'known_as': 'glBindVertexArrayOES', 815 'known_as': 'glBindVertexArrayOES',
816 'versions': [{ 'name': 'glBindVertexArray', 816 'versions': [{ 'name': 'glBindVertexArray',
817 'gl_versions': ['gl3', 'gl4'] }, 817 'gl_versions': ['gl3', 'gl4', 'es3'] },
818 { 'name': 'glBindVertexArray', 818 { 'name': 'glBindVertexArray',
819 'extensions': ['GL_ARB_vertex_array_object'] }, 819 'extensions': ['GL_ARB_vertex_array_object'] },
820 { 'name': 'glBindVertexArrayOES' }, 820 { 'name': 'glBindVertexArrayOES' },
821 { 'name': 'glBindVertexArrayAPPLE', 821 { 'name': 'glBindVertexArrayAPPLE',
822 'extensions': ['GL_APPLE_vertex_array_object'] }], 822 'extensions': ['GL_APPLE_vertex_array_object'] }],
823 'arguments': 'GLuint array' }, 823 'arguments': 'GLuint array' },
824 { 'return_type': 'GLboolean', 824 { 'return_type': 'GLboolean',
825 'known_as': 'glIsVertexArrayOES', 825 'known_as': 'glIsVertexArrayOES',
826 'versions': [{ 'name': 'glIsVertexArray', 826 'versions': [{ 'name': 'glIsVertexArray',
827 'gl_versions': ['gl3', 'gl4'] }, 827 'gl_versions': ['gl3', 'gl4'] },
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
2063 2063
2064 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2064 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2065 'wb') 2065 'wb')
2066 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2066 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2067 source_file.close() 2067 source_file.close()
2068 return 0 2068 return 0
2069 2069
2070 2070
2071 if __name__ == '__main__': 2071 if __name__ == '__main__':
2072 sys.exit(main(sys.argv[1:])) 2072 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698