mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 22:24:10 +00:00

Apart from a few edge cases we can avoid walking the tree and transform to the ancestor coordinate space by multiplying the actor stage-relative matrix with the inverse of the ancestor's stage-relative matrix. Since the stage-relative matrices are cached, this reduces the number of matrix multiplications we do in many situations considerably. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3259>