mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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.
This commit is contained in:
parent
5fac9b1beb
commit
1c24b1182b
12 changed files with 13 additions and 56 deletions
|
|
@ -116,13 +116,6 @@ static struct wlr_session *session_create_and_wait(struct wl_display *disp) {
|
|||
#endif
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
int wlr_backend_get_drm_fd(struct wlr_backend *backend) {
|
||||
if (!backend->impl->get_drm_fd) {
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue