Move PaintController::FinishCycle to the end of paint
PaintController::FinishCycle needs to be called after committing display items and is used to free state such as raster invalidations. The call to FinishCycle from GraphicsLayer::PaintRecursively has been moved to LocalFrameView::RunPaintLifecyclePhase. This makes the CompositeAfterPaint (CAP) and pre-CAP code more similar, as FinishCycle is always called at the end of RunPaintLifecyclePhase. This approach is needed for CompositeSVG (see: https://crrev.com/c/2250514) which needs to delay raster invalidation until after PaintArtifactCompositor updates (like CAP). Bug: 1101002 Change-Id: I41fc782a0f9f2ca5e3fcd0fe55d9e12bcc643528 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2287813Reviewed-by:Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#786369}
Showing
Please register or sign in to comment