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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 595023002: Implement idle task scheduling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Post idle tasks to the main thread run loop. Created 6 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 c9ca40a569f60048688a9fd98dd7e5f6944bcb0d..0314cdf7b6873a530521b8211b18e3cb51f1f6b9 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -1818,7 +1818,8 @@ void WebViewImpl::beginFrame(const WebBeginFrameArgs& frameTime)
if (!validFrameTime.lastFrameTimeMonotonic)
validFrameTime.lastFrameTimeMonotonic = monotonicallyIncreasingTime();
- Scheduler::shared()->willBeginFrame(validFrameTime);
+ Scheduler::shared()->willBeginFrame(
+ validFrameTime.lastFrameTimeMonotonic + validFrameTime.interval);
// Create synthetic wheel events as necessary for fling.
if (m_gestureAnimation) {

Powered by Google App Engine
This is Rietveld 408576698