Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2565)

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp

Issue 1416053003: Let synchronized painting generate correct paint invalidation rects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index b888a3ee33e6f6c1b8c3bc3747d2afc189efe99a..1b6cc4da61ac8573401c6c688b0f681e81052fcd 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -888,8 +888,9 @@ void PaintLayerCompositor::setTracksPaintInvalidations(bool tracksPaintInvalidat
FrameView* view = m_layoutView.frameView();
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
ASSERT(lifecycle().state() == DocumentLifecycle::CompositingForSlimmingPaintV2Clean
- // TODO(wangxianzhu): Remove this when we remove the old path for spv2.
- || lifecycle().state() == DocumentLifecycle::PaintInvalidationClean
+ || view->shouldThrottleRendering());
+ } else if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) {
+ ASSERT(lifecycle().state() == DocumentLifecycle::PaintClean
|| view->shouldThrottleRendering());
} else {
ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean

Powered by Google App Engine
This is Rietveld 408576698