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

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

Issue 2572893002: [Reland] Dont post delayed DoWork for disabled queues. (Closed)
Patch Set: Fix compile 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/renderer/throttled_time_domain.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc b/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc
index a859d091170b6533815787e08a47f6240e6379ea..348d0347a5d3f08679a5b25b5f15a93bf9b23850 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/throttled_time_domain.cc
@@ -17,12 +17,16 @@ const char* ThrottledTimeDomain::GetName() const {
return "ThrottledTimeDomain";
}
-void ThrottledTimeDomain::RequestWakeup(base::TimeTicks now,
- base::TimeDelta delay) {
+void ThrottledTimeDomain::RequestWakeupAt(base::TimeTicks now,
+ base::TimeTicks run_time) {
// We assume the owner (i.e. TaskQueueThrottler) will manage wakeups on our
// behalf.
}
+void ThrottledTimeDomain::CancelWakeupAt(base::TimeTicks run_time) {
+ // We ignore this because RequestWakeupAt is a NOP.
+}
+
base::Optional<base::TimeDelta> ThrottledTimeDomain::DelayTillNextTask(
LazyNow* lazy_now) {
base::TimeTicks next_run_time;

Powered by Google App Engine
This is Rietveld 408576698