diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-04 17:19:24 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-06 20:22:08 +0100 |
commit | 35b01c9604163fa3a168d7085b6c3c20a301ccd6 (patch) | |
tree | 176fb695259230eaea1999295224298bbcff5c67 /video/out/wayland_common.h | |
parent | 09b95257fe8ae393c6bafb907d0ae71004f1105c (diff) | |
download | mpv-35b01c9604163fa3a168d7085b6c3c20a301ccd6.tar.bz2 mpv-35b01c9604163fa3a168d7085b6c3c20a301ccd6.tar.xz |
wayland/egl: use redraw callback
This solves the issue where we would not receive any frame events. The
difference to my earlier tests is that now it looks like eglSwapBuffers uses
it's own event queue or something similiar along the lines. Becaues the
performance is the same as without any redraw callback.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r-- | video/out/wayland_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index efbe071f9d..152b438220 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -60,6 +60,9 @@ struct vo_wayland_state { EGLContext ctx; EGLConfig conf; } egl; + + + struct wl_callback * redraw_callback; } egl_context; #endif |