Cherry-pick: cc: Add invalidations when shrinking piles

Cherry-pick of chromium
crrev.com/2c8b61a4db617427448947ff740ba002da1a9644

Conflicts:
	cc/resources/picture_pile_unittest.cc

BUG: 17965814

Original description:

Previously, there was a hack/optimization where when shrinking a pile,
there would be no invalidations.  Unfortunately, this hack's time has
come due.  When zooming out, recorded pixels outside of the pile's newly
shrunken bounds can get used, causing pixels from old frames to get
incorrectly sampled, causing bogus hairlines.

To fix this, issue invalidations for previously exposed content in the
same way that invalidations are currently issues for newly exposed
content.

Change-Id: I3287e7e2261328a37781bf58da97ac4b7e60cb73
2 files changed