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

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

Issue 2302393002: Support swap damage rect using eglSwapBuffersWithDamageKHR (Closed)
Patch Set: Update GLSurfaceAdapter Created 4 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 | « third_party/khronos/README.chromium ('k') | ui/gl/gl_bindings_api_autogen_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 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1599 'EGLDisplay dpy, EGLStreamKHR stream, void* texture, ' 1599 'EGLDisplay dpy, EGLStreamKHR stream, void* texture, '
1600 'const EGLAttrib* attrib_list', }, 1600 'const EGLAttrib* attrib_list', },
1601 { 'return_type': 'EGLBoolean', 1601 { 'return_type': 'EGLBoolean',
1602 'names': ['eglSurfaceAttrib'], 1602 'names': ['eglSurfaceAttrib'],
1603 'arguments': 1603 'arguments':
1604 'EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value', }, 1604 'EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value', },
1605 { 'return_type': 'EGLBoolean', 1605 { 'return_type': 'EGLBoolean',
1606 'names': ['eglSwapBuffers'], 1606 'names': ['eglSwapBuffers'],
1607 'arguments': 'EGLDisplay dpy, EGLSurface surface', }, 1607 'arguments': 'EGLDisplay dpy, EGLSurface surface', },
1608 { 'return_type': 'EGLBoolean', 1608 { 'return_type': 'EGLBoolean',
1609 'names': ['eglSwapBuffersWithDamageKHR'],
1610 'arguments':
1611 'EGLDisplay dpy, EGLSurface surface, EGLint* rects, EGLint n_rects', },
1612 { 'return_type': 'EGLBoolean',
1609 'names': ['eglSwapInterval'], 1613 'names': ['eglSwapInterval'],
1610 'arguments': 'EGLDisplay dpy, EGLint interval', }, 1614 'arguments': 'EGLDisplay dpy, EGLint interval', },
1611 { 'return_type': 'EGLBoolean', 1615 { 'return_type': 'EGLBoolean',
1612 'names': ['eglTerminate'], 1616 'names': ['eglTerminate'],
1613 'arguments': 'EGLDisplay dpy', }, 1617 'arguments': 'EGLDisplay dpy', },
1614 { 'return_type': 'EGLBoolean', 1618 { 'return_type': 'EGLBoolean',
1615 'names': ['eglWaitClient'], 1619 'names': ['eglWaitClient'],
1616 'arguments': 'void', }, 1620 'arguments': 'void', },
1617 { 'return_type': 'EGLBoolean', 1621 { 'return_type': 'EGLBoolean',
1618 'names': ['eglWaitGL'], 1622 'names': ['eglWaitGL'],
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
2960 header_file = open( 2964 header_file = open(
2961 os.path.join(directory, 'gl_stub_autogen_gl.cc'), 'wb') 2965 os.path.join(directory, 'gl_stub_autogen_gl.cc'), 'wb')
2962 GenerateStubSource(header_file, GL_FUNCTIONS) 2966 GenerateStubSource(header_file, GL_FUNCTIONS)
2963 header_file.close() 2967 header_file.close()
2964 ClangFormat(header_file.name) 2968 ClangFormat(header_file.name)
2965 return 0 2969 return 0
2966 2970
2967 2971
2968 if __name__ == '__main__': 2972 if __name__ == '__main__':
2969 sys.exit(main(sys.argv[1:])) 2973 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « third_party/khronos/README.chromium ('k') | ui/gl/gl_bindings_api_autogen_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698