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

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: Review comments. 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 3c353cd186d56380367a5584bbf36e03c8226c7c..7f09312d3f4f2da0a007aad80801058fea85da4c 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -836,6 +836,20 @@ String LocalFrame::localLayerTreeAsText(unsigned flags) const
return contentLayoutObject()->compositor()->layerTreeAsText(static_cast<LayerTreeFlags>(flags));
}
+bool LocalFrame::shouldThrottleRenderingPipeline() const
+{
+ if (view())
+ return view()->shouldThrottleRenderingPipeline();
esprehn 2015/09/02 21:10:37 return view() && view()->...;
Sami 2015/09/03 17:23:20 Done.
+ return false;
+}
+
+bool LocalFrame::shouldThrottleStyleLayoutAndCompositingUpdates() const
+{
+ if (view())
+ return view()->shouldThrottleStyleLayoutAndCompositingUpdates();
esprehn 2015/09/02 21:10:37 ditto
Sami 2015/09/03 17:23:20 Done.
+ return false;
+}
+
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