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

Unified Diff: public/platform/WebThread.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
« Source/core/workers/WorkerThread.cpp ('K') | « public/platform/WebScheduler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebThread.h
diff --git a/public/platform/WebThread.h b/public/platform/WebThread.h
index ff37d9f3378071880898df206fe7dbd1a420b653..4ea60cd1b68b8f88b68e293f46d9b7d0b2f9b223 100644
--- a/public/platform/WebThread.h
+++ b/public/platform/WebThread.h
@@ -70,6 +70,8 @@ public:
// thread.
virtual void postTask(const WebTraceLocation&, Task*) = 0;
virtual void postDelayedTask(const WebTraceLocation&, Task*, long long delayMs) = 0;
+ virtual void postIdleTask(const blink::WebTraceLocation&, IdleTask*) = 0;
+ virtual void postIdleTaskAfterWakeup(const blink::WebTraceLocation&, IdleTask*) = 0;
virtual bool isCurrentThread() const = 0;
virtual PlatformThreadId threadId() const { return 0; }
« Source/core/workers/WorkerThread.cpp ('K') | « public/platform/WebScheduler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698