Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit ccc23e4

Browse files
committed
backend: remove get_presentation_clock from interface
Since 1367a4a, only CLOCK_MONOTONIC is supported.
1 parent 88cdacc commit ccc23e4

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

backend/backend.c

-7
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,6 @@ static struct wlr_session *session_create_and_wait(struct wl_display *disp) {
153153
return session;
154154
}
155155

156-
clockid_t wlr_backend_get_presentation_clock(struct wlr_backend *backend) {
157-
if (backend->impl->get_presentation_clock) {
158-
return backend->impl->get_presentation_clock(backend);
159-
}
160-
return CLOCK_MONOTONIC;
161-
}
162-
163156
int wlr_backend_get_drm_fd(struct wlr_backend *backend) {
164157
if (!backend->impl->get_drm_fd) {
165158
return -1;

backend/multi/backend.c

-15
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,6 @@ static struct wlr_session *multi_backend_get_session(
8282
return backend->session;
8383
}
8484

85-
static clockid_t multi_backend_get_presentation_clock(
86-
struct wlr_backend *backend) {
87-
struct wlr_multi_backend *multi = multi_backend_from_backend(backend);
88-
89-
struct subbackend_state *sub;
90-
wl_list_for_each(sub, &multi->backends, link) {
91-
if (sub->backend->impl->get_presentation_clock) {
92-
return wlr_backend_get_presentation_clock(sub->backend);
93-
}
94-
}
95-
96-
return CLOCK_MONOTONIC;
97-
}
98-
9985
static int multi_backend_get_drm_fd(struct wlr_backend *backend) {
10086
struct wlr_multi_backend *multi = multi_backend_from_backend(backend);
10187

@@ -114,7 +100,6 @@ static const struct wlr_backend_impl backend_impl = {
114100
.destroy = multi_backend_destroy,
115101
.get_renderer = multi_backend_get_renderer,
116102
.get_session = multi_backend_get_session,
117-
.get_presentation_clock = multi_backend_get_presentation_clock,
118103
.get_drm_fd = multi_backend_get_drm_fd,
119104
};
120105

include/wlr/backend/interface.h

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ struct wlr_backend_impl {
1818
void (*destroy)(struct wlr_backend *backend);
1919
struct wlr_renderer *(*get_renderer)(struct wlr_backend *backend);
2020
struct wlr_session *(*get_session)(struct wlr_backend *backend);
21-
clockid_t (*get_presentation_clock)(struct wlr_backend *backend);
2221
int (*get_drm_fd)(struct wlr_backend *backend);
2322
uint32_t (*get_buffer_caps)(struct wlr_backend *backend);
2423
};

0 commit comments

Comments
 (0)