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

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

Issue 2798563003: [scheduler] Add TaskQueue::Observer (Closed)
Patch Set: add todo for test timings & wake_up -> wake-up in comments Created 3 years, 8 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 348d0347a5d3f08679a5b25b5f15a93bf9b23850..531b08556db8eda36ef5e4f2089fb56104cc6f76 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
@@ -7,9 +7,8 @@
namespace blink {
namespace scheduler {
-ThrottledTimeDomain::ThrottledTimeDomain(TimeDomain::Observer* observer,
- const char* tracing_category)
- : RealTimeDomain(observer, tracing_category) {}
+ThrottledTimeDomain::ThrottledTimeDomain(const char* tracing_category)
+ : RealTimeDomain(tracing_category) {}
ThrottledTimeDomain::~ThrottledTimeDomain() {}
@@ -17,14 +16,14 @@ const char* ThrottledTimeDomain::GetName() const {
return "ThrottledTimeDomain";
}
-void ThrottledTimeDomain::RequestWakeupAt(base::TimeTicks now,
+void ThrottledTimeDomain::RequestWakeUpAt(base::TimeTicks now,
base::TimeTicks run_time) {
- // We assume the owner (i.e. TaskQueueThrottler) will manage wakeups on our
+ // We assume the owner (i.e. TaskQueueThrottler) will manage wake_ups on our
// behalf.
}
-void ThrottledTimeDomain::CancelWakeupAt(base::TimeTicks run_time) {
- // We ignore this because RequestWakeupAt is a NOP.
+void ThrottledTimeDomain::CancelWakeUpAt(base::TimeTicks run_time) {
+ // We ignore this because RequestWakeUpAt is a NOP.
}
base::Optional<base::TimeDelta> ThrottledTimeDomain::DelayTillNextTask(
@@ -37,7 +36,7 @@ base::Optional<base::TimeDelta> ThrottledTimeDomain::DelayTillNextTask(
if (now >= next_run_time)
return base::TimeDelta(); // Makes DoWork post an immediate continuation.
- // We assume the owner (i.e. TaskQueueThrottler) will manage wakeups on our
+ // We assume the owner (i.e. TaskQueueThrottler) will manage wake_ups on our
// behalf.
return base::nullopt;
}

Powered by Google App Engine
This is Rietveld 408576698