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

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

Issue 2705703002: Revert of [Reland] 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 7406dc4b21d654f8b1da39f5fcb646fb1e446504..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,16 +39,11 @@
return task_queue_manager_->delegate()->NowTicks();
}
-void RealTimeDomain::RequestWakeupAt(base::TimeTicks 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, 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