This repository was archived by the owner on Nov 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
163156int wlr_backend_get_drm_fd (struct wlr_backend * backend ) {
164157 if (!backend -> impl -> get_drm_fd ) {
165158 return -1 ;
Original file line number Diff line number Diff 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-
9985static 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
Original file line number Diff line number Diff 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};
You can’t perform that action at this time.
0 commit comments