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

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

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/core.gypi ('k') | Source/core/dom/DocumentLifecycle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentLifecycle.h
diff --git a/Source/core/dom/DocumentLifecycle.h b/Source/core/dom/DocumentLifecycle.h
index d302f83569114fd9abf61885821b96b264c8f638..c406fa853e34160104c339adc6258d28cf50fd58 100644
--- a/Source/core/dom/DocumentLifecycle.h
+++ b/Source/core/dom/DocumentLifecycle.h
@@ -65,6 +65,12 @@ public:
InPaintInvalidation,
PaintInvalidationClean,
+ InPaintForSlimmingPaintV2,
+ PaintForSlimmingPaintV2Clean,
+
+ InCompositingForSlimmingPaintV2,
+ CompositingForSlimmingPaintV2Clean,
+
// Once the document starts shuting down, we cannot return
// to the style/layout/compositing states.
Stopping,
@@ -157,7 +163,9 @@ inline bool DocumentLifecycle::stateAllowsTreeMutations() const
// but we need to fix MediaList listeners and plugins first.
return m_state != InStyleRecalc
&& m_state != InPerformLayout
- && m_state != InCompositingUpdate;
+ && m_state != InCompositingUpdate
+ && m_state != InPaintForSlimmingPaintV2
+ && m_state != InCompositingForSlimmingPaintV2;
}
inline bool DocumentLifecycle::stateAllowsLayoutTreeMutations() const
@@ -180,6 +188,8 @@ inline bool DocumentLifecycle::stateAllowsDetach() const
|| m_state == LayoutClean
|| m_state == CompositingClean
|| m_state == PaintInvalidationClean
+ || m_state == PaintForSlimmingPaintV2Clean
+ || m_state == CompositingForSlimmingPaintV2Clean
|| m_state == Stopping;
}
@@ -187,7 +197,9 @@ inline bool DocumentLifecycle::stateAllowsLayoutInvalidation() const
{
return m_state != InPerformLayout
&& m_state != InCompositingUpdate
- && m_state != InPaintInvalidation;
+ && m_state != InPaintInvalidation
+ && m_state != InPaintForSlimmingPaintV2
+ && m_state != InCompositingForSlimmingPaintV2;
}
} // namespace blink
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/DocumentLifecycle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698