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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

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/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index c0b3b8d0f8d02582cc351d9b9eb321b87db82949..5b41610d7cb1e9032e1d94a01c022accbb981eb2 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -841,6 +841,16 @@ String LocalFrame::localLayerTreeAsText(unsigned flags) const
return contentLayoutObject()->compositor()->layerTreeAsText(static_cast<LayerTreeFlags>(flags));
}
+bool LocalFrame::shouldThrottleRenderingPipeline() const
+{
+ return view() && view()->shouldThrottleRenderingPipeline();
+}
+
+bool LocalFrame::shouldThrottleStyleLayoutAndCompositingUpdates() const
+{
+ return view() && view()->shouldThrottleStyleLayoutAndCompositingUpdates();
+}
+
inline LocalFrame::LocalFrame(FrameLoaderClient* client, FrameHost* host, FrameOwner* owner)
: Frame(client, host, owner)
, m_loader(this)

Powered by Google App Engine
This is Rietveld 408576698