mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
Add wl_surface.frame based frame scheduler
This commit is contained in:
parent
98cbf09f8a
commit
ad145dce86
4 changed files with 86 additions and 0 deletions
|
|
@ -581,6 +581,11 @@ bool wlr_backend_is_wl(const 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue