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

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

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: Changed the idle implementation Created 5 years, 9 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.h
diff --git a/Source/platform/scheduler/Scheduler.h b/Source/platform/scheduler/Scheduler.h
index b830ef4989e1c002ece934cb9eb89b6b551dc487..83a833b52dbee5d356041fceb301e315d5cf98a3 100644
--- a/Source/platform/scheduler/Scheduler.h
+++ b/Source/platform/scheduler/Scheduler.h
@@ -48,6 +48,10 @@ public:
// Takes ownership of |WebThread::Task|.
void postLoadingTask(const WebTraceLocation&, WebThread::Task*);
+ // For Blink Timer tasks, e.g. DOMTimers, Can only be called from the blink main thread.
+ // Takes ownership of |WebThread::Task|.
+ void postTimerTask(const WebTraceLocation&, WebThread::Task*, long long delayMs);
+
// Returns true if there is high priority work pending on the main thread
// and the caller should yield to let the scheduler service that work.
// Must be called on the main thread.

Powered by Google App Engine
This is Rietveld 408576698