diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-04 22:18:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 22:18:19 +0200 |
commit | 24a48d4858a9d5eda0be86e20cbf0d378895063a (patch) | |
tree | 6fbd71fd0fe6f06183a7ee94b03727f69341328b /backend/backend.c | |
parent | c67ce71fddeae90f6b3d89a742a77d049ffb3e20 (diff) | |
parent | eac7c2ad2faf49084342d9f805cf06b773723fdd (diff) |
Merge pull request #1272 from emersion/presentation-time
Implement presentation-time
Diffstat (limited to 'backend/backend.c')
-rw-r--r-- | backend/backend.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/backend.c b/backend/backend.c index 2d6464b7..4b186767 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -64,6 +64,13 @@ struct wlr_session *wlr_backend_get_session(struct wlr_backend *backend) { return NULL; } +clockid_t wlr_backend_get_presentation_clock(struct wlr_backend *backend) { + if (backend->impl->get_presentation_clock) { + return backend->impl->get_presentation_clock(backend); + } + return CLOCK_MONOTONIC; +} + static size_t parse_outputs_env(const char *name) { const char *outputs_str = getenv(name); if (outputs_str == NULL) { |