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

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

Issue 1696233002: Make render pipeline throttling opt-in (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows build fix. Created 4 years, 10 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 59b9e3ec9b35cabddbc138f27a570afff5acedcc..a6bf8f50eb780eab3f94ef94bc7015c989a351b7 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1943,6 +1943,7 @@ void WebViewImpl::beginFrame(double lastFrameTimeMonotonic)
if (!m_page)
return;
+ DocumentLifecycle::AllowThrottlingScope throttlingScope(mainFrameImpl()->frame()->document()->lifecycle());
PageWidgetDelegate::animate(*m_page, lastFrameTimeMonotonic);
}
@@ -1952,6 +1953,7 @@ void WebViewImpl::updateAllLifecyclePhases()
if (!mainFrameImpl())
return;
+ DocumentLifecycle::AllowThrottlingScope throttlingScope(mainFrameImpl()->frame()->document()->lifecycle());
updateLayerTreeBackgroundColor();
PageWidgetDelegate::updateAllLifecyclePhases(*m_page, *mainFrameImpl()->frame());
@@ -3528,6 +3530,7 @@ WebHitTestResult WebViewImpl::hitTestResultAt(const WebPoint& point)
HitTestResult WebViewImpl::coreHitTestResultAt(const WebPoint& pointInViewport)
{
+ DocumentLifecycle::AllowThrottlingScope throttlingScope(mainFrameImpl()->frame()->document()->lifecycle());
FrameView* view = mainFrameImpl()->frameView();
IntPoint pointInRootFrame = view->contentsToFrame(view->viewportToContents(pointInViewport));
return hitTestResultForRootFramePos(pointInRootFrame);
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.h ('k') | third_party/WebKit/Source/web/tests/FrameThrottlingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698