cc: Always use invalidation on the pending tree when deciding to share

The invalidation on the active tree shouldn't prevent new tiles on the
active tree from sharing with the pending tree. Instead, the
invalidation on the pending tree should.

The current code can lead to us re-rastering content for no reason on
the active tree, when it is already available on the pending tree. Or
sharing with the pending tree when it's not appropriate causing a
non-atomic frame update during scrolling with pending tree content
appearing on the active tree too soon.

R=enne, vmpstr
BUG=387116

Committed: https://crrev.com/82e46120237bc023559ac7ebddb29e21b6530170
Cr-Commit-Position: refs/heads/master@{#301193}

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

Cr-Commit-Position: refs/heads/master@{#301391}
8 files changed