Add wl_surface.frame based frame scheduler

This commit is contained in:
Rose Hudson 2023-08-10 12:29:18 +01:00
parent 9b4acb157e
commit be9622aba0
4 changed files with 85 additions and 0 deletions

View file

@ -560,6 +560,11 @@ bool wlr_backend_is_wl(struct wlr_backend *b) {
return b->impl == &backend_impl;
}
bool wlr_wl_backend_has_presentation_time(struct wlr_backend *wlr_backend) {
struct wlr_wl_backend *backend = get_wl_backend_from_backend(wlr_backend);
return backend->presentation != NULL;
}
static void handle_event_loop_destroy(struct wl_listener *listener, void *data) {
struct wlr_wl_backend *wl = wl_container_of(listener, wl, event_loop_destroy);
backend_destroy(&wl->backend);