[SPv2] Fix flaky raster-under-invalidation checking

The flakiness was caused by 2 reasons:
1. ContentLayerClientImpl was reused for a different PaintChunk
   using the same ID as a previously deleted PaintChunk.
2. RasterInvalidationTracking was reused for a different
   cc::PictureLayer that was allocated at the same address as a
   previously deleted layer.

For 1, use PaintChunk::Matches to match id to PaintChunk.
For 2, delete the RasterInvalidationTracking entry in
 ~ContentLayerClientImpl.

BUG=644358
TEST=no flakiness for https://chromium-review.googlesource.com/c/515884/ 

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Change-Id: Ia84a59875876608ad879c580c29637d2dd3ad75e
Reviewed-on: https://chromium-review.googlesource.com/534962
Reviewed-by: Chris harrelson <chrishtr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#479451}
2 files changed