DescriptionMoved parent_->SchedulePaint() to Views::SetFillsBoundsOpaquely() and Views::SchedulePaint().
Reland of patchset #8 id:140001 of https://codereview.chromium.org/1461673002/
Original patchset was reverted here https://codereview.chromium.org/1560723002/
due to memory leaks in tests.
TBR=sadrul@chromium.org,jonross@chromium.org,sky@chromium.org
BUG=551492, 546683
Original issue's description:
> This CL fixes a more general issue in Views that had a quick fix
> that landed here: https://codereview.chromium.org/1460733002/
>
> The general problem is that the layer owned by a parent View can
> become dirty/stale when a child view is painting to it's own layer.
> This CL fixes the problem by scheduling paints on the parent view
> when it may be dirty.
>
> BUG=551492, 546683
> TEST=ViewLayerTest.NoCrashWhenParentlessViewSchedulesPaintOnParent
> ViewLayerTest.ScheduledRectsInParentAfterSchedulingPaint
> ViewLayerTest.ParentPaintWhenSwitchingPaintToLayerFromFalseToTrue
> ViewLayerTest.NoParentPaintWhenSwitchingPaintToLayerFromTrueToTrue
>
> Committed: https://crrev.com/c8761106916aac604f30fb2223cdbfb2bd3ffda3
> Cr-Commit-Position: refs/heads/master@{#367536}
Committed: https://crrev.com/5f90e3971ee381e0208ab3cb5dc6e9916f173487
Cr-Commit-Position: refs/heads/master@{#367831}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|