mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
Merge branch 'scene-bbox-caching' into 'master'
wlr_scene: Add bounding-box caching See merge request wlroots/wlroots!5272
This commit is contained in:
commit
1a5ecb7264
2 changed files with 91 additions and 1 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue