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.
This commit is contained in:
Kenny Levinsen 2022-08-18 11:54:03 +02:00
parent 724aa38fc2
commit 7c575922c0
2 changed files with 19 additions and 56 deletions

View file

@ -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 */