From b1ba7de34dd5685a082454817f23509d1c28e4aa Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 31 Aug 2018 20:08:08 +0200 Subject: vo: use a struct for vsync feedback stuff So new useless stuff can be easily added. --- video/out/gpu/context.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'video/out/gpu/context.h') diff --git a/video/out/gpu/context.h b/video/out/gpu/context.h index b6b6ffcf43..ef48e6053f 100644 --- a/video/out/gpu/context.h +++ b/video/out/gpu/context.h @@ -84,14 +84,8 @@ struct ra_swapchain_fns { // params.swapchain_depth, or until the next vblank (for vsynced contexts) void (*swap_buffers)(struct ra_swapchain *sw); - // Return the latency at which swap_buffers() is performed. This is in - // seconds and always >= 0. Essentially, it's the predicted time the last - // shown frame will take until it is actually displayed on the physical - // screen. (A reasonable implementation is returning the duration the - // last actually displayed frame took after its swap_buffers() was called.) - // Should return -1 on error (e.g. discontinuities). - // Can be NULL 0 or always return -1 if unsupported. - double (*get_latency)(struct ra_swapchain *sw); + // See vo. Usually called after swap_buffers(). + void (*get_vsync)(struct ra_swapchain *sw, struct vo_vsync_info *info); }; // Create and destroy a ra_ctx. This also takes care of creating and destroying -- cgit v1.2.3