aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2022-08-18 11:54:03 +0200
committerKenny Levinsen <kl@kl.wtf>2022-08-19 19:38:33 +0200
commit7c575922c05e4d5fd9a403c2aa631a54c7531d44 (patch)
treecb42951932e564bcced1db6c572598f83d6129c7 /include/wlr
parent724aa38fc2de14909663cb984a9de64a561abf5f (diff)
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.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h7
1 files changed, 1 insertions, 6 deletions
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 */