diff options
author | Simon Ser <contact@emersion.fr> | 2021-10-20 16:08:47 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-10-23 00:49:07 +0200 |
commit | a4ccca08341e91eee7fd2ae2658501b031d75445 (patch) | |
tree | 418b098ee3741ae9372be2b3f9c94656c311d6a7 /include/wlr | |
parent | db4c93028d2c807694be8a9fa36e581239d1ee77 (diff) |
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.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 4 |
1 files changed, 4 insertions, 0 deletions
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, |