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

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

Issue 196653019: gpu: Add extension check when initializing MailboxSync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: and mac should fail Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/texture_definition.cc ('k') | no next file » | 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 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 { 'return_type': 'EGLBoolean', 899 { 'return_type': 'EGLBoolean',
900 'names': ['eglChooseConfig'], 900 'names': ['eglChooseConfig'],
901 'arguments': 'EGLDisplay dpy, const EGLint* attrib_list, EGLConfig* configs, ' 901 'arguments': 'EGLDisplay dpy, const EGLint* attrib_list, EGLConfig* configs, '
902 'EGLint config_size, EGLint* num_config', }, 902 'EGLint config_size, EGLint* num_config', },
903 { 'return_type': 'EGLBoolean', 903 { 'return_type': 'EGLBoolean',
904 'names': ['eglGetConfigAttrib'], 904 'names': ['eglGetConfigAttrib'],
905 'arguments': 905 'arguments':
906 'EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint* value', }, 906 'EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint* value', },
907 { 'return_type': 'EGLImageKHR', 907 { 'return_type': 'EGLImageKHR',
908 'versions': [{ 'name': 'eglCreateImageKHR', 908 'versions': [{ 'name': 'eglCreateImageKHR',
909 'extensions': ['EGL_KHR_image_base'] }], 909 'extensions':
910 ['EGL_KHR_image_base', 'EGL_KHR_gl_texture_2D_image'] }],
910 'arguments': 911 'arguments':
911 'EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, ' 912 'EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, '
912 'const EGLint* attrib_list' }, 913 'const EGLint* attrib_list' },
913 { 'return_type': 'EGLBoolean', 914 { 'return_type': 'EGLBoolean',
914 'versions': [{ 'name' : 'eglDestroyImageKHR', 915 'versions': [{ 'name' : 'eglDestroyImageKHR',
915 'extensions': ['EGL_KHR_image_base'] }], 916 'extensions': ['EGL_KHR_image_base'] }],
916 'arguments': 'EGLDisplay dpy, EGLImageKHR image' }, 917 'arguments': 'EGLDisplay dpy, EGLImageKHR image' },
917 { 'return_type': 'EGLSurface', 918 { 'return_type': 'EGLSurface',
918 'names': ['eglCreateWindowSurface'], 919 'names': ['eglCreateWindowSurface'],
919 'arguments': 'EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, ' 920 'arguments': 'EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, '
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
2013 2014
2014 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2015 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2015 'wb') 2016 'wb')
2016 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2017 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2017 source_file.close() 2018 source_file.close()
2018 return 0 2019 return 0
2019 2020
2020 2021
2021 if __name__ == '__main__': 2022 if __name__ == '__main__':
2022 sys.exit(main(sys.argv[1:])) 2023 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_definition.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698