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

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

Issue 1246173002: Throttle rendering pipeline for invisible iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add layout tests. Created 5 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: Source/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index 8951fe2f267717a56e37cff755ff3f4a80e0f8ab..13242712697a251ebe7ba219f4297445003ff411 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -837,6 +837,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