mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
wlr_scene: Rewrite direct scan out logic to rely on visibility
Also make the regular rendering logic use the introduced render list.
This commit is contained in:
parent
14f4cfffba
commit
0a9a941ba3
2 changed files with 167 additions and 91 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue