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

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

Issue 2801713002: GLImageEGL: add dmabuf queries
Patch Set: remove enum BufferFormatModifier Created 3 years, 8 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 | « no previous file | ui/gl/gl_image_egl.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 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1954 'arguments': 'EGLDisplay dpy, EGLSurface surface, ' 1954 'arguments': 'EGLDisplay dpy, EGLSurface surface, '
1955 'EGLint x, EGLint y, EGLint width, EGLint height', }, 1955 'EGLint x, EGLint y, EGLint width, EGLint height', },
1956 { 'return_type': 'EGLenum', 1956 { 'return_type': 'EGLenum',
1957 'names': ['eglQueryAPI'], 1957 'names': ['eglQueryAPI'],
1958 'arguments': 'void', }, 1958 'arguments': 'void', },
1959 { 'return_type': 'EGLBoolean', 1959 { 'return_type': 'EGLBoolean',
1960 'names': ['eglQueryContext'], 1960 'names': ['eglQueryContext'],
1961 'arguments': 1961 'arguments':
1962 'EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint* value', }, 1962 'EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint* value', },
1963 { 'return_type': 'EGLBoolean', 1963 { 'return_type': 'EGLBoolean',
1964 'versions': [{ 'name': 'eglQueryDmaBufFormatsEXT',
1965 'extensions':
1966 ['EGL_EXT_image_dma_buf_import_modifiers',
1967 'EGL_EXT_image_dma_buf_import',
1968 'EGL_KHR_image_base'] }],
1969 'arguments':
1970 'EGLDisplay dpy, EGLint max_formats, EGLint* formats,'
1971 'EGLint* num_formats' },
1972 { 'return_type': 'EGLBoolean',
1973 'versions': [{ 'name': 'eglQueryDmaBufModifiersEXT',
1974 'extensions':
1975 ['EGL_EXT_image_dma_buf_import_modifiers',
1976 'EGL_EXT_image_dma_buf_import',
1977 'EGL_KHR_image_base'] }],
1978 'arguments':
1979 'EGLDisplay dpy, EGLint format, EGLint max_modifiers, '
1980 'EGLuint64KHR* modifiers, EGLBoolean* external_only, '
1981 'EGLint* num_modifiers' },
1982 { 'return_type': 'EGLBoolean',
1964 'versions': [{ 'name': 'eglQueryStreamKHR', 1983 'versions': [{ 'name': 'eglQueryStreamKHR',
1965 'extensions': ['EGL_KHR_stream'] }], 1984 'extensions': ['EGL_KHR_stream'] }],
1966 'arguments': 1985 'arguments':
1967 'EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, ' 1986 'EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, '
1968 'EGLint* value' }, 1987 'EGLint* value' },
1969 { 'return_type': 'EGLBoolean', 1988 { 'return_type': 'EGLBoolean',
1970 'versions': [{ 'name': 'eglQueryStreamu64KHR', 1989 'versions': [{ 'name': 'eglQueryStreamu64KHR',
1971 'extensions': ['EGL_KHR_stream'] }], 1990 'extensions': ['EGL_KHR_stream'] }],
1972 'arguments': 1991 'arguments':
1973 'EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, ' 1992 'EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, '
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
3365 header_file = open( 3384 header_file = open(
3366 os.path.join(directory, 'gl_stub_autogen_gl.cc'), 'wb') 3385 os.path.join(directory, 'gl_stub_autogen_gl.cc'), 'wb')
3367 GenerateStubSource(header_file, GL_FUNCTIONS) 3386 GenerateStubSource(header_file, GL_FUNCTIONS)
3368 header_file.close() 3387 header_file.close()
3369 ClangFormat(header_file.name) 3388 ClangFormat(header_file.name)
3370 return 0 3389 return 0
3371 3390
3372 3391
3373 if __name__ == '__main__': 3392 if __name__ == '__main__':
3374 sys.exit(main(sys.argv[1:])) 3393 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | ui/gl/gl_image_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698