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

Unified Diff: third_party/WebKit/Source/platform/Timer.cpp

Issue 1340343003: scheduler: Implement WebFrameScheduler and WebPageScheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + fixed gn build. 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
« no previous file with comments | « third_party/WebKit/Source/platform/Timer.h ('k') | third_party/WebKit/Source/platform/WebScheduler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/Timer.cpp
diff --git a/third_party/WebKit/Source/platform/Timer.cpp b/third_party/WebKit/Source/platform/Timer.cpp
index 9d333551cc28b38f81a19225eaceb857b077af7e..c2913c3bc49da7494f2b06eb9bd0bc97af2f066c 100644
--- a/third_party/WebKit/Source/platform/Timer.cpp
+++ b/third_party/WebKit/Source/platform/Timer.cpp
@@ -87,6 +87,11 @@ double TimerBase::nextFireInterval() const
return m_nextFireTime - current;
}
+WebTaskRunner* TimerBase::timerTaskRunner()
+{
+ return m_webScheduler->timerTaskRunner();
+}
+
void TimerBase::setNextFireTime(double now, double delay)
{
ASSERT(m_thread == currentThread());
@@ -110,7 +115,7 @@ void TimerBase::setNextFireTime(double now, double delay)
long long delayMs = static_cast<long long>(ceil((newTime - now) * 1000.0));
if (delayMs < 0)
delayMs = 0;
- m_webScheduler->timerTaskRunner()->postDelayedTask(m_location, m_cancellableTimerTask, delayMs);
+ timerTaskRunner()->postDelayedTask(m_location, m_cancellableTimerTask, delayMs);
}
}
}
« no previous file with comments | « third_party/WebKit/Source/platform/Timer.h ('k') | third_party/WebKit/Source/platform/WebScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698