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

Unified Diff: Source/platform/WebThreadSupportingGC.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/WebThreadSupportingGC.h
diff --git a/Source/platform/WebThreadSupportingGC.h b/Source/platform/WebThreadSupportingGC.h
index 5899cb748d182f8efb90e7cb73a2ba781b13ac4c..3eb4b44f2f7cd6ca2453edaa03e0b34ca9932d41 100644
--- a/Source/platform/WebThreadSupportingGC.h
+++ b/Source/platform/WebThreadSupportingGC.h
@@ -37,6 +37,16 @@ public:
m_thread->postDelayedTask(location, task, delayMs);
}
+ void postIdleTask(const WebTraceLocation& location, WebThread::IdleTask* idleTask)
+ {
+ m_thread->postIdleTask(location, idleTask);
+ }
+
+ void postIdleTaskAfterWakeup(const WebTraceLocation& location, WebThread::IdleTask* idleTask)
+ {
+ m_thread->postIdleTaskAfterWakeup(location, idleTask);
+ }
+
bool isCurrentThread() const
{
return m_thread->isCurrentThread();

Powered by Google App Engine
This is Rietveld 408576698