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

Unified Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1287093004: Slimming Paint phase 2 compositing algorithm plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update per reviewer comments. Still need to find a home for the Transform Tree. Created 5 years, 4 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: Source/core/paint/DeprecatedPaintLayer.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
index e959ac12c71119335e8658c459a34e4855746927..07ee550151ae3502f50e31b085ea5b290adc2bc5 100644
--- a/Source/core/paint/DeprecatedPaintLayer.cpp
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp
@@ -2209,7 +2209,7 @@ CompositingState DeprecatedPaintLayer::compositingState() const
bool DeprecatedPaintLayer::isAllowedToQueryCompositingState() const
{
- if (gCompositingQueryMode == CompositingQueriesAreAllowed)
+ if (gCompositingQueryMode == CompositingQueriesAreAllowed || RuntimeEnabledFeatures::slimmingPaintV2Enabled())
return true;
return layoutObject()->document().lifecycle().state() >= DocumentLifecycle::InCompositingUpdate;
}

Powered by Google App Engine
This is Rietveld 408576698