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

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

Issue 2674903003: Revert of Dont post delayed DoWork for disabled queues. (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
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 051a51f6b973fdbdc58a1d761990c4526c5b3c6d..312136a91605ad284084f8970999b49d78de61e2 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,17 +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, this, lazy_now,
- run_time);
-}
-
-void RealTimeDomain::CancelWakeupAt(base::TimeTicks run_time) {
- task_queue_manager_->CancelDelayedWork(this, 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