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

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

Issue 1364063007: Throttle rendering pipeline for invisible frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IntersectionObserverification 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/dom/DocumentLifecycle.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentLifecycle.h b/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
index d111b1d694812eb3fb15ba74d66621215011e02b..b299e2647c524ae8301381d7318b7034fa2a3634 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
@@ -134,6 +134,8 @@ public:
DocumentLifecycle& m_documentLifecycle;
};
+ enum class ThrottlingMode { Disallow, Allow };
+
DocumentLifecycle();
~DocumentLifecycle();
@@ -157,6 +159,9 @@ public:
m_detachCount--;
}
+ void setThrottlingMode(ThrottlingMode);
+ ThrottlingMode throttlingMode() const;
+
#if ENABLE(ASSERT)
static const char* stateAsDebugString(const State);
#endif
@@ -169,6 +174,7 @@ private:
State m_state;
int m_detachCount;
+ ThrottlingMode m_throttlingMode;
};
inline bool DocumentLifecycle::stateAllowsTreeMutations() const

Powered by Google App Engine
This is Rietveld 408576698