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

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

Issue 2572893002: [Reland] Dont post delayed DoWork for disabled queues. (Closed)
Patch Set: Fix perftest 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/renderer/auto_advancing_virtual_time_domain.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/auto_advancing_virtual_time_domain.cc b/third_party/WebKit/Source/platform/scheduler/renderer/auto_advancing_virtual_time_domain.cc
index 455a0c2ddbaf870ab42b3097a7c2bff740923d13..e339f71b945c1fb5cb399e7990929fb6561c3c62 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/auto_advancing_virtual_time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/auto_advancing_virtual_time_domain.cc
@@ -24,14 +24,16 @@ AutoAdvancingVirtualTimeDomain::DelayTillNextTask(LazyNow* lazy_now) {
return base::TimeDelta(); // Makes DoWork post an immediate continuation.
}
-void AutoAdvancingVirtualTimeDomain::RequestWakeup(base::TimeTicks now,
- base::TimeDelta delay) {
+void AutoAdvancingVirtualTimeDomain::RequestWakeupAt(LazyNow* lazy_now,
+ base::TimeTicks run_time) {
// Avoid posting pointless DoWorks. I.e. if the time domain has more then one
// scheduled wake up then we don't need to do anything.
if (can_advance_virtual_time_ && NumberOfScheduledWakeups() == 1u)
RequestDoWork();
}
+void AutoAdvancingVirtualTimeDomain::CancelWakeupAt(base::TimeTicks run_time) {}
Sami 2016/12/14 16:29:38 I guess in theory we could cancel the DoWork but i
alex clarke (OOO till 29th) 2016/12/14 16:50:36 We don't need to do anything, I added a comment.
+
void AutoAdvancingVirtualTimeDomain::SetCanAdvanceVirtualTime(
bool can_advance_virtual_time) {
can_advance_virtual_time_ = can_advance_virtual_time;

Powered by Google App Engine
This is Rietveld 408576698