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

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: For landing 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..22118089d6a6dc473a15d8211d9f1c85c6b744a4 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -888,9 +888,10 @@ 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 && view->shouldThrottleRendering()));
} else {
ASSERT(lifecycle().state() == DocumentLifecycle::PaintInvalidationClean
|| (view && view->shouldThrottleRendering()));

Powered by Google App Engine
This is Rietveld 408576698