From a4ccca08341e91eee7fd2ae2658501b031d75445 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 20 Oct 2021 16:08:47 +0200 Subject: scene: add support for direct scan-out Check if only a single node intersects with the output viewport and all of its properties match. In this case, attempt direct scan-out. --- include/wlr/types/wlr_scene.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 17516aaf..538b8941 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -109,6 +109,10 @@ struct wlr_scene_output { struct wlr_output_damage *damage; int x, y; + + // private state + + bool prev_scanout; }; typedef void (*wlr_scene_node_iterator_func_t)(struct wlr_scene_node *node, -- cgit v1.2.3