• ajuma's avatar
    cc: Re-use transforms from transform nodes when computing visible rects · 992c398b
    ajuma authored
    This makes CalculateVisibleRects try to re-use the to_target and
    from_target transforms stored in transform nodes whenever it needs to
    compute a transform. Since these baked transforms incorporate the
    target's sublayer scale, the fallback path now also includes sublayer
    scale for consistency.
    
    Testing locally on a z620, this improves property tree computation time
    by 7% on Gmail, and by 20% on rAF-driven poster circle.
    
    BUG=474725
    
    Review URL: https://codereview.chromium.org/1060413002
    
    Cr-Commit-Position: refs/heads/master@{#324122}
    992c398b
draw_property_utils.cc 13.6 KB