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

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

Issue 1911273002: Don't restart the ImageQualityController timer unless it is already half over. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4ae6c3cba36823239e2581a97f90dd37aa3064fd..9822f33e4a6c7f54fc811444d07d14eb307abf19 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -444,6 +444,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client)
, m_displayMode(WebDisplayModeBrowser)
, m_elasticOverscroll(FloatSize())
, m_scheduler(adoptPtr(Platform::current()->currentThread()->scheduler()->createWebViewScheduler(this).release()))
+ , m_lastFrameTimeMonotonic(0)
{
Page::PageClients pageClients;
pageClients.chromeClient = m_chromeClientImpl.get();
@@ -1959,6 +1960,8 @@ void WebViewImpl::beginFrame(double lastFrameTimeMonotonic)
if (!mainFrameImpl())
return;
+ m_lastFrameTimeMonotonic = lastFrameTimeMonotonic;
+
DocumentLifecycle::AllowThrottlingScope throttlingScope(mainFrameImpl()->frame()->document()->lifecycle());
PageWidgetDelegate::animate(*m_page, lastFrameTimeMonotonic);
}
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698