[client] metrics: correlate Wayland presentation timing

This commit is contained in:
Geoffrey McRae
2026-08-06 17:29:44 +10:00
parent d3ee46f376
commit ea6e155bbf
11 changed files with 327 additions and 63 deletions

View File

@@ -88,6 +88,8 @@ void app_handleGrabEvent(bool active);
void app_handleFocusEvent(bool focused);
void app_handleCloseEvent(void);
void app_handleRenderEvent(const uint64_t timeUs);
void app_handleFramePresented(uint64_t frameToken, uint64_t presentTime,
bool valid);
void app_setFullscreen(bool fs);
bool app_getFullscreen(void);
@@ -104,7 +106,8 @@ bool app_getHDRDescFailed(void);
EGLDisplay app_getEGLDisplay(void);
EGLNativeWindowType app_getEGLNativeWindow(void);
bool app_eglSwapBuffers(EGLDisplay display, EGLSurface surface,
const struct Rect * damage, int count);
const struct Rect * damage, int count, uint64_t frameToken,
uint64_t * swapTime, bool * presentTracked);
#endif
#ifdef ENABLE_OPENGL