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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1364063007: Throttle rendering pipeline for invisible frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Might help to include the test source code. 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: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index a20c4c51ab3c0c1208d5c916a971d4eb0e729c4e..dcbe037f8fd47732d85719561056794f722947ee 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1932,6 +1932,14 @@ void WebViewImpl::paint(WebCanvas* canvas, const WebRect& rect)
Platform::current()->histogramCustomCounts("Renderer4.SoftwarePaintMegapixPerSecond", pixelsPerSec / 1000000, 10, 210, 30);
}
+void WebViewImpl::didCommitCompositorFrame()
+{
+ if (!mainFrameImpl() || !mainFrameImpl()->frameView())
+ return;
+ FrameView* view = mainFrameImpl()->frameView();
+ view->finalizeLifecycleUpdate();
+}
+
#if OS(ANDROID)
void WebViewImpl::paintCompositedDeprecated(WebCanvas* canvas, const WebRect& rect)
{

Powered by Google App Engine
This is Rietveld 408576698