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.
This commit is contained in:
Simon Ser 2021-10-20 16:08:47 +02:00 committed by Kenny Levinsen
parent db4c93028d
commit a4ccca0834
2 changed files with 97 additions and 0 deletions

View file

@ -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,