Merge branch 'scene-bbox-caching' into 'master'

wlr_scene: Add bounding-box caching

See merge request wlroots/wlroots!5272
This commit is contained in:
Liam Middlebrook 2026-04-10 13:00:56 +00:00
commit 1a5ecb7264
2 changed files with 91 additions and 1 deletions

View file

@ -92,6 +92,12 @@ struct wlr_scene_tree {
struct wlr_scene_node node;
struct wl_list children; // wlr_scene_node.link
struct {
// Cached bounding box for optimized scene traversal
struct wlr_box bbox;
bool bbox_valid;
} WLR_PRIVATE;
};
/** The root scene-graph node. */