aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-10-20 16:08:47 +0200
committerKenny Levinsen <kl@kl.wtf>2021-10-23 00:49:07 +0200
commita4ccca08341e91eee7fd2ae2658501b031d75445 (patch)
tree418b098ee3741ae9372be2b3f9c94656c311d6a7 /include/wlr
parentdb4c93028d2c807694be8a9fa36e581239d1ee77 (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.h4
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,