cc: Make animation contents scale aware of trees affected by animations

This CL makes the computation of maximum_animation_contents_scale and
starting_animation_contents_scale take into account which trees are
affected by each animation, so that animations affecting only the pending
tree don't affect scales computed for the active tree and vice versa.

BUG=509673
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review URL: https://codereview.chromium.org/1289993002

Cr-Commit-Position: refs/heads/master@{#344503}
7 files changed