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

Unified Diff: Source/core/dom/DocumentLifecycle.cpp

Issue 1287093004: Slimming Paint phase 2 compositing algorithm plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase from space 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
« no previous file with comments | « Source/core/dom/DocumentLifecycle.h ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentLifecycle.cpp
diff --git a/Source/core/dom/DocumentLifecycle.cpp b/Source/core/dom/DocumentLifecycle.cpp
index e4b0acb8d62e94e8ec33b1560977c7d4285b1fb8..6490f0a8269f6ceb262ff8e0fbac86f8d30fe1ba 100644
--- a/Source/core/dom/DocumentLifecycle.cpp
+++ b/Source/core/dom/DocumentLifecycle.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "core/dom/DocumentLifecycle.h"
+#include "platform/RuntimeEnabledFeatures.h"
#include "wtf/Assertions.h"
namespace blink {
@@ -194,6 +195,28 @@ bool DocumentLifecycle::canAdvanceTo(State nextState) const
return true;
if (nextState == InCompositingUpdate)
return true;
+ if (nextState == InPaintForSlimmingPaintV2 && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return true;
+ break;
+ case InPaintForSlimmingPaintV2:
+ if (nextState == PaintForSlimmingPaintV2Clean && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return true;
+ break;
+ case PaintForSlimmingPaintV2Clean:
+ if (nextState == InCompositingForSlimmingPaintV2 && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return true;
+ break;
+ case InCompositingForSlimmingPaintV2:
+ if (nextState == CompositingForSlimmingPaintV2Clean && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return true;
+ break;
+ case CompositingForSlimmingPaintV2Clean:
+ if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return false;
+ if (nextState == InCompositingUpdate)
+ return true;
+ if (nextState == CompositingForSlimmingPaintV2Clean)
+ return true;
break;
case Stopping:
return nextState == Stopped;
@@ -212,7 +235,14 @@ bool DocumentLifecycle::canRewindTo(State nextState) const
// This transition is bogus, but we've whitelisted it anyway.
if (s_deprecatedTransitionStack && m_state == s_deprecatedTransitionStack->from() && nextState == s_deprecatedTransitionStack->to())
return true;
- return m_state == StyleClean || m_state == LayoutSubtreeChangeClean || m_state == AfterPerformLayout || m_state == LayoutClean || m_state == CompositingClean || m_state == PaintInvalidationClean;
+ return m_state == StyleClean
+ || m_state == LayoutSubtreeChangeClean
+ || m_state == AfterPerformLayout
+ || m_state == LayoutClean
+ || m_state == CompositingClean
+ || m_state == PaintInvalidationClean
+ || (m_state == PaintForSlimmingPaintV2Clean && RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ || (m_state == CompositingForSlimmingPaintV2Clean && RuntimeEnabledFeatures::slimmingPaintV2Enabled());
}
#endif
« no previous file with comments | « Source/core/dom/DocumentLifecycle.h ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698