From 16aa04d539dac8e2ca50783e7da2a4231daa2777 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 1 Aug 2021 04:05:43 -0400 Subject: [PATCH] [client] ds: add skipFrame method to interface If this exists, it should be called when waitFrame returns but we don't wish to render. --- client/include/interface/displayserver.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/include/interface/displayserver.h b/client/include/interface/displayserver.h index 7645a5b8..f729584f 100644 --- a/client/include/interface/displayserver.h +++ b/client/include/interface/displayserver.h @@ -150,10 +150,12 @@ struct LG_DisplayServerOps #endif /* Waits for a good time to render the next frame in time for the next vblank. - * Once this returns, a frame must be rendered. * This is optional and a display server may choose to not implement it. */ void (*waitFrame)(void); + /* This must be called when waitFrame returns, but no frame is actually rendered. */ + void (*skipFrame)(void); + /* dm specific cursor implementations */ void (*guestPointerUpdated)(double x, double y, double localX, double localY); void (*setPointer)(LG_DSPointer pointer);