Reland "Remove GraphicsLayer::SetNeedsDisplay()" part 1 of 2
This relands the part of the original change not including the change
for LayoutView::InvalidatePaintForViewAndDescendants().
Original change's description:
> Remove GraphicsLayer::SetNeedsDisplay()
>
> With unified PaintController, to support SetNeedsDisplay() we would
> need to add PaintController mechanism to invalidate all display items
> in a range for a GraphicsLayer. Removing SetNeedsDisplay() can avoid
> that. We instead use the normal paint invalidation code path. For
> needed invalidation, now invalidate the display items of and in the
> GraphicsLayer. Some invalidations are not needed because we have
> already invalidated the DisplayItemClients.
>
> Also rename SetContentsNeedsDisplay() to InvalidateContents(), and
> SetNeedsDisplayInrect() to InvaldiateRaster() which is only called by
> RasterInvalidator.
>
> Bug: 1132717
> Change-Id: I535cdcc7ee1d07e23a490fdf2aa267573a54d0ba
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2478026
> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
> Reviewed-by: Philip Rogers <pdr@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#818673}
TBR=wangxianzhu@chromium.org, pdr@chromium.org
Bug: 1132717, 11406534
Change-Id: I7df36010f633a0ad4274eb542aacf0948b63c7ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2508742
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822426}
GitOrigin-RevId: 801b24c95d848dfb40899b2d77ccb00943cc92a8
27 files changed