aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/backend/interface.h
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 /include/wlr/backend/interface.h
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 'include/wlr/backend/interface.h')
-rw-r--r--include/wlr/backend/interface.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/wlr/backend/interface.h b/include/wlr/backend/interface.h
index 8b922f1d..da57cae9 100644
--- a/include/wlr/backend/interface.h
+++ b/include/wlr/backend/interface.h
@@ -10,13 +10,11 @@
#define WLR_BACKEND_INTERFACE_H
#include <stdbool.h>
-#include <time.h>
#include <wlr/backend.h>
struct wlr_backend_impl {
bool (*start)(struct wlr_backend *backend);
void (*destroy)(struct wlr_backend *backend);
- clockid_t (*get_presentation_clock)(struct wlr_backend *backend);
int (*get_drm_fd)(struct wlr_backend *backend);
uint32_t (*get_buffer_caps)(struct wlr_backend *backend);
};