[client] wayland: measure presentation time

This commit is contained in:
Quantum
2021-05-13 22:51:45 -04:00
committed by Geoffrey McRae
parent 6da9428d85
commit e87bc3a83e
6 changed files with 133 additions and 1 deletions

View File

@@ -35,6 +35,7 @@
#include "interface/displayserver.h"
#include "wayland-xdg-shell-client-protocol.h"
#include "wayland-presentation-time-client-protocol.h"
#include "wayland-xdg-decoration-unstable-v1-client-protocol.h"
#include "wayland-keyboard-shortcuts-inhibit-unstable-v1-client-protocol.h"
#include "wayland-pointer-constraints-unstable-v1-client-protocol.h"
@@ -110,6 +111,9 @@ struct WaylandDSState
EGLSurface glSurface;
#endif
struct wp_presentation * presentation;
clockid_t clkId;
#ifdef ENABLE_LIBDECOR
struct libdecor * libdecor;
struct libdecor_frame * libdecorFrame;
@@ -255,6 +259,11 @@ void waylandWait(unsigned int time);
bool waylandPollRegister(int fd, WaylandPollCallback callback, void * opaque, uint32_t events);
bool waylandPollUnregister(int fd);
// presentation module
bool waylandPresentationInit(void);
void waylandPresentationFrame(void);
void waylandPresentationFree(void);
// registry module
bool waylandRegistryInit(void);
void waylandRegistryFree(void);