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

Unified Diff: third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp

Issue 2754673002: [scheduler] Split suspendable tq from unthrottled tq. (Closed)
Patch Set: Unthrottled means unthrottled Created 3 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: third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
diff --git a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
index 8e5d0af5b9246e96d0dfae688dd9a52f04365dc5..7d555e39ba8145bb0bdf9e61125448c38f98e65b 100644
--- a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
+++ b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
@@ -47,6 +47,8 @@ RefPtr<WebTaskRunner> TaskRunnerHelper::get(TaskType type, LocalFrame* frame) {
case TaskType::WebGL:
case TaskType::UnspecedTimer:
case TaskType::MiscPlatformAPI:
+ return frame ? frame->frameScheduler()->suspendableTaskRunner()
+ : Platform::current()->currentThread()->getWebTaskRunner();
case TaskType::Unthrottled:
return frame ? frame->frameScheduler()->unthrottledTaskRunner()
: Platform::current()->currentThread()->getWebTaskRunner();

Powered by Google App Engine
This is Rietveld 408576698