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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc

Issue 2696833002: [scheduler] Do not call PumpThrottledTasks immediately when descheduled (Closed)
Patch Set: Created 3 years, 10 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/platform/scheduler/renderer/task_queue_throttler.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc
index c64fbd46ae460e29911ae8fa3a701b1cdbedbb6b..32ddc1fa6f11a6c213cacf42e3c0758a777c868c 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/task_queue_throttler.cc
@@ -485,7 +485,7 @@ void TaskQueueThrottler::MaybeSchedulePumpThrottledTasks(
return;
base::TimeTicks runtime =
- std::max(now, AlignedThrottledRunTime(unaligned_runtime));
+ AlignedThrottledRunTime(std::max(now, unaligned_runtime));
Sami 2017/02/14 17:54:42 DCHECK that the time is not in the past?
altimin 2017/02/14 18:22:24 Done.
// If there is a pending call to PumpThrottledTasks and it's sooner than
// |runtime| then return.
« 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