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

Unified Diff: Source/platform/scheduler/Scheduler.cpp

Issue 956333002: Refactor TimeBase to post tasks. Workers to use real Idle tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix a bunch of stuff Created 5 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: Source/platform/scheduler/Scheduler.cpp
diff --git a/Source/platform/scheduler/Scheduler.cpp b/Source/platform/scheduler/Scheduler.cpp
index 2beaf11362b3efda681c4b66b13883a8296be983..73d5df733d2b08afa964fb61bbe586b4c8ed6d20 100644
--- a/Source/platform/scheduler/Scheduler.cpp
+++ b/Source/platform/scheduler/Scheduler.cpp
@@ -77,6 +77,12 @@ void Scheduler::postLoadingTask(const WebTraceLocation& location, WebThread::Tas
m_webScheduler->postLoadingTask(location, task);
}
+void Scheduler::postTimerTask(const WebTraceLocation& location, WebThread::Task* task, long long delayMs)
+{
+ if (m_webScheduler)
+ m_webScheduler->postTimerTask(location, task, delayMs);
+}
+
bool Scheduler::shouldYieldForHighPriorityWork() const
{
if (m_webScheduler)

Powered by Google App Engine
This is Rietveld 408576698