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

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

Issue 940433005: Add postIdleTaskAfterWakeup to WebScheduler. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | Source/platform/scheduler/Scheduler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/scheduler/Scheduler.h
diff --git a/Source/platform/scheduler/Scheduler.h b/Source/platform/scheduler/Scheduler.h
index f20878c36fe27e297fab24a8c3c0ff689b7067f9..a18621d0e3705e7d592434b7b4ad09e961158f18 100644
--- a/Source/platform/scheduler/Scheduler.h
+++ b/Source/platform/scheduler/Scheduler.h
@@ -30,6 +30,11 @@ public:
// for an arbitrarily long time if no idle time is available.
void postIdleTask(const WebTraceLocation&, PassOwnPtr<IdleTask>);
+ // Like postIdleTask but does not run the idle task until after some other
+ // task has run. This enables posting of a task which won't stop the Blink
+ // main thread from sleeping, but will start running after it wakes up.
+ void postIdleTaskAfterWakeup(const WebTraceLocation&, PassOwnPtr<IdleTask>);
+
// For tasks related to loading, e.g. HTML parsing. Loading tasks usually have default priority
// but they may be deprioritized when the user is interacting with the device.
// Takes ownership of |WebThread::Task|.
« no previous file with comments | « no previous file | Source/platform/scheduler/Scheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698