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

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

Issue 2810423003: Schedule bitmap animation timers on the compositor task runner. (Closed)
Patch Set: fix up comment about a method changed by blink reformat 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
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 631c5de8c0ec7a26c67b96aea14956e1c38bf507..42bfd3b2f8015b8ae1e56a997760e344d0416a47 100644
--- a/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
+++ b/third_party/WebKit/Source/core/dom/TaskRunnerHelper.cpp
@@ -34,6 +34,9 @@ RefPtr<WebTaskRunner> TaskRunnerHelper::Get(TaskType type, LocalFrame* frame) {
case TaskType::kDatabaseAccess:
return frame ? frame->FrameScheduler()->SuspendableTaskRunner()
: Platform::Current()->CurrentThread()->GetWebTaskRunner();
+ case TaskType::kAnimationTimer:
+ return frame ? frame->FrameScheduler()->CompositorTaskRunner()
+ : Platform::Current()->CurrentThread()->GetWebTaskRunner();
case TaskType::kDOMManipulation:
case TaskType::kUserInteraction:
case TaskType::kHistoryTraversal:
@@ -116,6 +119,7 @@ RefPtr<WebTaskRunner> TaskRunnerHelper::Get(TaskType type,
case TaskType::kMiscPlatformAPI:
case TaskType::kUnspecedTimer:
case TaskType::kUnspecedLoading:
+ case TaskType::kAnimationTimer:
case TaskType::kUnthrottled:
// UnthrottledTaskRunner is generally discouraged in future.
// TODO(nhiroki): Identify which tasks can be throttled / suspendable and

Powered by Google App Engine
This is Rietveld 408576698