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

Unified Diff: third_party/WebKit/Source/core/frame/SuspendableTimer.cpp

Issue 2658583006: scheduler: Make DOM window event tasks unthrottled (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
diff --git a/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp b/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
index 31bf39faf0d07aafc5bda77f5759db70042d55d2..025cc43c9f2f8090309353470cd7cd815595bc3c 100644
--- a/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
+++ b/third_party/WebKit/Source/core/frame/SuspendableTimer.cpp
@@ -35,12 +35,11 @@ namespace {
const double kNextFireIntervalInvalid = -1.0;
}
-SuspendableTimer::SuspendableTimer(ExecutionContext* context)
- : TimerBase(TaskRunnerHelper::get(TaskType::Timer, context)),
+SuspendableTimer::SuspendableTimer(ExecutionContext* context, TaskType taskType)
+ : TimerBase(TaskRunnerHelper::get(taskType, context)),
SuspendableObject(context),
m_nextFireInterval(kNextFireIntervalInvalid),
- m_repeatInterval(0)
-{
+ m_repeatInterval(0) {
DCHECK(context);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/SuspendableTimer.h ('k') | third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698