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

Unified Diff: Source/web/WebViewImpl.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/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 54528301108a1b1ffa35069b4b4a863736ad9565..a19445f46bb2cf0847550419a5c9abe31d3cd6d3 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1939,7 +1939,10 @@ void WebViewImpl::paint(WebCanvas* canvas, const WebRect& rect)
void WebViewImpl::didCommitCompositorFrame()
{
- // TODO(skyostil): Update the throttling status of all frames in the tree.
+ if (!mainFrameImpl() || !mainFrameImpl()->frameView())
+ return;
+ FrameView* view = mainFrameImpl()->frameView();
+ view->updateThrottling();
}
#if OS(ANDROID)
« Source/core/frame/FrameViewTest.cpp ('K') | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698