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

Unified Diff: Source/platform/SharedTimer.cpp

Issue 364873002: Introduce a basic Blink Scheduler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleaned up includes + build fix. Created 6 years, 5 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/ThreadTimers.cpp » ('j') | Source/platform/scheduler/Scheduler.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/SharedTimer.cpp
diff --git a/Source/platform/SharedTimer.cpp b/Source/platform/SharedTimer.cpp
index 8fa3285ba38c2af146e22c358bbee1a79f0f75e8..7a985958ad93d387199b13e1fb9a4943922112da 100644
--- a/Source/platform/SharedTimer.cpp
+++ b/Source/platform/SharedTimer.cpp
@@ -26,23 +26,24 @@
#include "config.h"
#include "platform/SharedTimer.h"
+#include "platform/scheduler/Scheduler.h"
#include "public/platform/Platform.h"
namespace WebCore {
void setSharedTimerFiredFunction(void (*f)())
{
- blink::Platform::current()->setSharedTimerFiredFunction(f);
+ Scheduler::shared()->setSharedTimerFiredFunction(f);
}
void setSharedTimerFireInterval(double fireTime)
{
- blink::Platform::current()->setSharedTimerFireInterval(fireTime);
+ Scheduler::shared()->setSharedTimerFireInterval(fireTime);
}
void stopSharedTimer()
{
- blink::Platform::current()->stopSharedTimer();
+ Scheduler::shared()->stopSharedTimer();
}
} // namespace WebCore
« no previous file with comments | « no previous file | Source/platform/ThreadTimers.cpp » ('j') | Source/platform/scheduler/Scheduler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698