diff options
author | emersion <contact@emersion.fr> | 2018-10-01 22:44:33 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-10-04 21:58:17 +0200 |
commit | 54e1287f307d13566deaf51683da373f3524d1d9 (patch) | |
tree | b1361c23ac87e12a01cb7e5f39142a0d1cf9c2b3 /backend/drm/backend.c | |
parent | 9203bfdd4fd0257174cd03c34ee02c6138e604b8 (diff) |
backend: add get_present_clock
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r-- | backend/drm/backend.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c index b298365e..b230613d 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -65,10 +65,16 @@ static struct wlr_renderer *backend_get_renderer( } } +static clockid_t backend_get_present_clock(struct wlr_backend *backend) { + struct wlr_drm_backend *drm = get_drm_backend_from_backend(backend); + return drm->clock; +} + static struct wlr_backend_impl backend_impl = { .start = backend_start, .destroy = backend_destroy, .get_renderer = backend_get_renderer, + .get_present_clock = backend_get_present_clock, }; bool wlr_backend_is_drm(struct wlr_backend *b) { |