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

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

Issue 2895673002: [scheduler] Add unthrottled-by-blockable task queue to fix touch latency regression. (Closed)
Patch Set: Fix Created 3 years, 7 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 5cece113001eea219e23994abc6170e34b7e46ed..215e8bd4bab112d59e9e445bfe2d8481edae066f 100644
--- a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
+++ b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
@@ -53,6 +53,11 @@ RefPtr<WebTaskRunner> TaskRunnerHelper::Get(TaskType type, LocalFrame* frame) {
case TaskType::kWebGL:
case TaskType::kUnspecedTimer:
case TaskType::kMiscPlatformAPI:
+ // TODO(altimin): Move all these tasks to suspendable or unthrottled
+ // task runner.
+ return frame
+ ? frame->FrameScheduler()->UnthrottledButBlockableTaskRunner()
+ : Platform::Current()->CurrentThread()->GetWebTaskRunner();
case TaskType::kUnthrottled:
return frame ? frame->FrameScheduler()->UnthrottledTaskRunner()
: Platform::Current()->CurrentThread()->GetWebTaskRunner();

Powered by Google App Engine
This is Rietveld 408576698