From 0a9a941ba329d10c08a6f638a0b22b60b7c92d0f Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sun, 14 Aug 2022 02:17:09 -0400 Subject: wlr_scene: Rewrite direct scan out logic to rely on visibility Also make the regular rendering logic use the introduced render list. --- include/wlr/types/wlr_scene.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index da0a794a..efdd6061 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -158,6 +158,11 @@ struct wlr_scene_buffer { enum wl_output_transform transform; }; +struct wlr_scene_output_render_list { + struct wlr_scene_node **data; + size_t capacity; +}; + /** A viewport for an output in the scene-graph */ struct wlr_scene_output { struct wlr_output *output; @@ -184,6 +189,8 @@ struct wlr_scene_output { struct wl_listener output_needs_frame; struct wl_list damage_highlight_regions; + + struct wlr_scene_output_render_list render_list; }; /** A layer shell scene helper */ -- cgit v1.2.3