backend: add get_present_clock

This commit is contained in:
emersion 2018-10-01 22:44:33 +02:00
parent 9203bfdd4f
commit 54e1287f30
7 changed files with 33 additions and 6 deletions

View file

@ -62,5 +62,9 @@ struct wlr_renderer *wlr_backend_get_renderer(struct wlr_backend *backend);
* Might return NULL for backends that don't use a session.
*/
struct wlr_session *wlr_backend_get_session(struct wlr_backend *backend);
/**
* Returns the clock used by the backend for presentation feedback.
*/
clockid_t wlr_backend_get_present_clock(struct wlr_backend *backend);
#endif