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

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

Issue 2808273003: [scheduler] Move some task types to suspendable task runner. (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 783e5f802ec1a53cee75a97c0d37d75d08ce1166..0d7ec8b17d87f98a68343ad60aa4b97efd96dd82 100644
--- a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
+++ b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
@@ -28,24 +28,24 @@ RefPtr<WebTaskRunner> TaskRunnerHelper::Get(TaskType type, LocalFrame* frame) {
// TODO(nhiroki): Throttle them again after we're convinced that it's safe
Sami 2017/04/12 15:24:50 Does this comment need updating by the way?
// or provide a mechanism that web pages can opt-out it if throttling is not
// desirable.
+ case TaskType::kDOMManipulation:
case TaskType::kDatabaseAccess:
+ case TaskType::kFileReading:
+ case TaskType::kHistoryTraversal:
+ case TaskType::kPerformanceTimeline:
+ case TaskType::kPostedMessage:
+ case TaskType::kRemoteEvent:
+ case TaskType::kSensor:
+ case TaskType::kUnshippedPortMessage:
+ case TaskType::kWebSocket:
return frame ? frame->FrameScheduler()->SuspendableTaskRunner()
: Platform::Current()->CurrentThread()->GetWebTaskRunner();
- case TaskType::kDOMManipulation:
case TaskType::kUserInteraction:
- case TaskType::kHistoryTraversal:
case TaskType::kEmbed:
case TaskType::kMediaElementEvent:
case TaskType::kCanvasBlobSerialization:
- case TaskType::kRemoteEvent:
- case TaskType::kWebSocket:
case TaskType::kMicrotask:
- case TaskType::kPostedMessage:
- case TaskType::kUnshippedPortMessage:
- case TaskType::kFileReading:
case TaskType::kPresentation:
- case TaskType::kSensor:
- case TaskType::kPerformanceTimeline:
case TaskType::kWebGL:
case TaskType::kUnspecedTimer:
case TaskType::kMiscPlatformAPI:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698