• Adam Barth's avatar
    Remove clients of getTotalMatrix (#4487) · afe3158d
    Adam Barth authored
    Instead of using getTotalMatrix and setMatrix, we can just use
    save/restore, which is more idiomatic.
    
    The getTotalMatrix/setMatrix pattern was introduced to improve
    performance, but the original code was calling getTotalMatrix/setMatrix
    at every node in the sprite tree, which is much slower than the normal
    save/transform/restore pattern.
    
    Related to #4254
    afe3158d
layer.dart 1.49 KB