[client] ds: change signalNextFrame to waitFrame

This commit is contained in:
Quantum
2021-08-01 03:06:03 -04:00
committed by Geoffrey McRae
parent 37196f1f0e
commit 77b3d45e0e
5 changed files with 24 additions and 19 deletions

View File

@@ -149,11 +149,10 @@ struct LG_DisplayServerOps
void (*glSwapBuffers)(void);
#endif
/* Signals event when the next frame should be rendered in time for the next vblank.
* This must be invoked on the render thread before swapping buffers.
* If used, the render thread MUST wait for event before rendering the next frame.
/* 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 (*signalNextFrame)(LGEvent * event);
void (*waitFrame)(void);
/* dm specific cursor implementations */
void (*guestPointerUpdated)(double x, double y, double localX, double localY);