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

Unified Diff: third_party/WebKit/Source/core/animation/DocumentAnimations.cpp

Issue 2322073006: Turn off the old compositing path for SPv2. (Closed)
Patch Set: none Created 4 years, 3 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/animation/DocumentAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp b/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp
index 6913f3f0c2cf5d90c68470b9c37fe49c79337b4e..ea25af00fab0b98fd999f0b9ba29cab47e10c4c0 100644
--- a/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/DocumentAnimations.cpp
@@ -67,9 +67,13 @@ void DocumentAnimations::updateAnimationTimingIfNeeded(Document& document)
updateAnimationTiming(document, TimingUpdateOnDemand);
}
-void DocumentAnimations::updateCompositorAnimations(Document& document)
+void DocumentAnimations::updateAnimations(Document& document)
{
- DCHECK_EQ(document.lifecycle().state(), DocumentLifecycle::CompositingClean);
+ if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ DCHECK(document.lifecycle().state() >= DocumentLifecycle::CompositingClean);
+ else
+ DCHECK(document.lifecycle().state() >= DocumentLifecycle::LayoutClean);
+
if (document.compositorPendingAnimations().update()) {
DCHECK(document.view());
document.view()->scheduleAnimation();

Powered by Google App Engine
This is Rietveld 408576698