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

Unified Diff: third_party/WebKit/Source/core/frame/DOMTimer.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/DOMTimer.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMTimer.cpp b/third_party/WebKit/Source/core/frame/DOMTimer.cpp
index fc863ba3e1777abf61521457760dd850ce7b247b..e38ac74e6489aa12c3e4eb579ca5f997bd5976ab 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimer.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMTimer.cpp
@@ -27,6 +27,7 @@
#include "core/frame/DOMTimer.h"
#include "core/dom/ExecutionContext.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/PerformanceMonitor.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/InspectorTraceEvents.h"
@@ -85,7 +86,7 @@ DOMTimer::DOMTimer(ExecutionContext* context,
int interval,
bool singleShot,
int timeoutID)
- : SuspendableTimer(context),
+ : SuspendableTimer(context, TaskType::Timer),
m_timeoutID(timeoutID),
m_nestingLevel(context->timers()->timerNestingLevel() + 1),
m_action(action) {
« no previous file with comments | « third_party/WebKit/Source/core/events/DOMWindowEventQueue.cpp ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698