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

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

Issue 1298523003: Add GL_CHROMIUM_screen_space_antialiasing to support alternative AA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 5 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
« no previous file with comments | « mojo/gpu/mojo_gles2_impl_autogen.cc ('k') | ui/gl/gl_bindings_api_autogen_gl.h » ('j') | 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 extension string is not modified. 42 extension string is not modified.
43 By default, the function gets its name from the first name in its names or 43 By default, the function gets its name from the first name in its names or
44 versions array. This can be overridden by supplying a 'known_as' key. 44 versions array. This can be overridden by supplying a 'known_as' key.
45 45
46 """ 46 """
47 GL_FUNCTIONS = [ 47 GL_FUNCTIONS = [
48 { 'return_type': 'void', 48 { 'return_type': 'void',
49 'names': ['glActiveTexture'], 49 'names': ['glActiveTexture'],
50 'arguments': 'GLenum texture', }, 50 'arguments': 'GLenum texture', },
51 { 'return_type': 'void', 51 { 'return_type': 'void',
52 'known_as': 'glApplyFramebufferAttachmentCMAAINTEL',
53 'versions': [{ 'name': 'glApplyFramebufferAttachmentCMAAINTEL',
54 'extensions': ['GL_INTEL_framebuffer_CMAA'] }],
55 'arguments': 'void', },
56 { 'return_type': 'void',
52 'names': ['glAttachShader'], 57 'names': ['glAttachShader'],
53 'arguments': 'GLuint program, GLuint shader', }, 58 'arguments': 'GLuint program, GLuint shader', },
54 { 'return_type': 'void', 59 { 'return_type': 'void',
55 'versions': [{ 'name': 'glBeginQuery' }, 60 'versions': [{ 'name': 'glBeginQuery' },
56 { 'name': 'glBeginQueryARB' }, 61 { 'name': 'glBeginQueryARB' },
57 { 'name': 'glBeginQueryEXT', 62 { 'name': 'glBeginQueryEXT',
58 'extensions': ['GL_EXT_occlusion_query_boolean'] }], 63 'extensions': ['GL_EXT_occlusion_query_boolean'] }],
59 'arguments': 'GLenum target, GLuint id', }, 64 'arguments': 'GLenum target, GLuint id', },
60 { 'return_type': 'void', 65 { 'return_type': 'void',
61 'versions': [{ 'name': 'glBeginTransformFeedback' }], 66 'versions': [{ 'name': 'glBeginTransformFeedback' }],
(...skipping 2617 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 'gl_enums_implementation_autogen.h'), 2684 'gl_enums_implementation_autogen.h'),
2680 'wb') 2685 'wb')
2681 GenerateEnumUtils(header_file, enum_header_filenames) 2686 GenerateEnumUtils(header_file, enum_header_filenames)
2682 header_file.close() 2687 header_file.close()
2683 ClangFormat(header_file.name) 2688 ClangFormat(header_file.name)
2684 return 0 2689 return 0
2685 2690
2686 2691
2687 if __name__ == '__main__': 2692 if __name__ == '__main__':
2688 sys.exit(main(sys.argv[1:])) 2693 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « mojo/gpu/mojo_gles2_impl_autogen.cc ('k') | ui/gl/gl_bindings_api_autogen_gl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698