summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gpu/context.h')
-rw-r--r--video/out/gpu/context.h10
1 files changed, 2 insertions, 8 deletions
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