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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc

Issue 2583333002: Revert of Dont post delayed DoWork for disabled queues. (Closed)
Patch Set: Created 4 years 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/platform/scheduler/base/real_time_domain.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc b/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc
index c3c8e2fb5c12bb85ffb0bd24023c5a3fb3b94ed8..8614d7ac849ee2a0b9c9bac0b309e34abef5476e 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc
@@ -39,16 +39,11 @@
return task_queue_manager_->delegate()->NowTicks();
}
-void RealTimeDomain::RequestWakeupAt(LazyNow* lazy_now,
- base::TimeTicks run_time) {
+void RealTimeDomain::RequestWakeup(base::TimeTicks now, base::TimeDelta delay) {
// NOTE this is only called if the scheduled runtime is sooner than any
// previously scheduled runtime, or there is no (outstanding) previously
// scheduled runtime.
- task_queue_manager_->MaybeScheduleDelayedWork(FROM_HERE, lazy_now, run_time);
-}
-
-void RealTimeDomain::CancelWakeupAt(base::TimeTicks run_time) {
- task_queue_manager_->CancelDelayedWork(run_time);
+ task_queue_manager_->MaybeScheduleDelayedWork(FROM_HERE, now, delay);
}
base::Optional<base::TimeDelta> RealTimeDomain::DelayTillNextTask(

Powered by Google App Engine
This is Rietveld 408576698