mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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:
parent
724aa38fc2
commit
7c575922c0
2 changed files with 19 additions and 56 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue