aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/backend.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-10-30 18:37:13 +0100
committerSimon Ser <contact@emersion.fr>2023-10-30 18:39:39 +0100
commit1c24b1182ba39cb8c508580713336dcf79e6a295 (patch)
tree5c2554accf8a5aabd2413648397836da050a1dde /backend/drm/backend.c
parent5fac9b1beb2281fb13d3e5de7fdd10ff7ba0f30b (diff)
backend: drop wlr_backend_get_presentation_clock()
We can just assume CLOCK_MONOTONIC everywhere. Simplifies the backend API, and fixes clock mismatches when multiple backends are used together with different clocks.
Diffstat (limited to 'backend/drm/backend.c')
-rw-r--r--backend/drm/backend.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c
index df02c6b3..4ee79773 100644
--- a/backend/drm/backend.c
+++ b/backend/drm/backend.c
@@ -64,11 +64,6 @@ static void backend_destroy(struct wlr_backend *backend) {
free(drm);
}
-static clockid_t backend_get_presentation_clock(struct wlr_backend *backend) {
- struct wlr_drm_backend *drm = get_drm_backend_from_backend(backend);
- return drm->clock;
-}
-
static int backend_get_drm_fd(struct wlr_backend *backend) {
struct wlr_drm_backend *drm = get_drm_backend_from_backend(backend);
@@ -86,7 +81,6 @@ static uint32_t drm_backend_get_buffer_caps(struct wlr_backend *backend) {
static const struct wlr_backend_impl backend_impl = {
.start = backend_start,
.destroy = backend_destroy,
- .get_presentation_clock = backend_get_presentation_clock,
.get_drm_fd = backend_get_drm_fd,
.get_buffer_caps = drm_backend_get_buffer_caps,
};