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

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

Issue 2572893002: [Reland] Dont post delayed DoWork for disabled queues. (Closed)
Patch Set: Rebased Created 3 years, 11 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/virtual_time_domain.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/virtual_time_domain.cc b/third_party/WebKit/Source/platform/scheduler/base/virtual_time_domain.cc
index a90b3be285d13c282459df1e65c61341b5132c6a..1d8a45e7649d133e4b29b0336ee6ef1d1a67934d 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/virtual_time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/virtual_time_domain.cc
@@ -34,13 +34,17 @@ base::TimeTicks VirtualTimeDomain::Now() const {
return now_;
}
-void VirtualTimeDomain::RequestWakeup(base::TimeTicks now,
- base::TimeDelta delay) {
+void VirtualTimeDomain::RequestWakeupAt(LazyNow* lazy_now,
+ base::TimeTicks run_time) {
// We don't need to do anything here because the caller of AdvanceTo is
// responsible for calling TaskQueueManager::MaybeScheduleImmediateWork if
// needed.
}
+void VirtualTimeDomain::CancelWakeupAt(base::TimeTicks run_time) {
+ // We ignore this because RequestWakeupAt is a NOP.
+}
+
base::Optional<base::TimeDelta> VirtualTimeDomain::DelayTillNextTask(
LazyNow* lazy_now) {
return base::nullopt;

Powered by Google App Engine
This is Rietveld 408576698