From 7c575922c05e4d5fd9a403c2aa631a54c7531d44 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Thu, 18 Aug 2022 11:54:03 +0200 Subject: wlr_scene: Convert render_list to wl_array This simplifies some of the growth logic, but uses array_realloc to shrink the array if needed. --- include/wlr/types/wlr_scene.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index d92df7db..614397f7 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -157,11 +157,6 @@ struct wlr_scene_buffer { pixman_region32_t opaque_region; }; -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; @@ -189,7 +184,7 @@ struct wlr_scene_output { struct wl_list damage_highlight_regions; - struct wlr_scene_output_render_list render_list; + struct wl_array render_list; }; /** A layer shell scene helper */ -- cgit v1.2.3