aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/gl_wayland.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-05-01 18:44:45 +0200
committerGravatar wm4 <wm4@nowhere>2015-05-01 18:44:45 +0200
commit0a7abbda6b555fb7746f737b52d0f00fb3e614db (patch)
treef97223c385573718609738b5b8ffda09a7ecfa86 /video/out/gl_wayland.c
parente23e4c7c603fc1cd911621d0f833031be4a6f7c7 (diff)
vo_opengl: refactor wayland frame skipping
Currently, the wayland backend needs extra work to avoid drawing more often than the wayland frame callback allows. (This is not ideal, but will be fixed at a later time.) Unify this with the start_frame callback added for cocoa. Some details change for the better. For example, if a frame is dropped, and a redraw is done afterwards, the actually correct frame is redrawn, instead whatever was in the textures from before the dropped frame.
Diffstat (limited to 'video/out/gl_wayland.c')
-rw-r--r--video/out/gl_wayland.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/gl_wayland.c b/video/out/gl_wayland.c
index 0fcec82377..3307087a44 100644
--- a/video/out/gl_wayland.c
+++ b/video/out/gl_wayland.c
@@ -215,7 +215,7 @@ static int control(struct vo *vo, int *events, int request, void *data)
return r;
}
-static bool is_active(struct MPGLContext *ctx)
+static bool start_frame(struct MPGLContext *ctx)
{
struct vo_wayland_state *wl = ctx->vo->wayland;
return wl->frame.pending;
@@ -229,5 +229,5 @@ void mpgl_set_backend_wayland(MPGLContext *ctx)
ctx->vo_control = control;
ctx->vo_init = vo_wayland_init;
ctx->vo_uninit = vo_wayland_uninit;
- ctx->is_active = is_active;
+ ctx->start_frame = start_frame;
}