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

Unified Diff: components/scheduler/base/real_time_domain.cc

Issue 1718233002: Fix computation of runtime for throttled tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 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
« no previous file with comments | « components/scheduler/base/real_time_domain.h ('k') | components/scheduler/base/task_queue_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/base/real_time_domain.cc
diff --git a/components/scheduler/base/real_time_domain.cc b/components/scheduler/base/real_time_domain.cc
index bafd757ed63f2e8d89fa7f1557059a6da114d13a..e084ee461ac9baecaaa0aedecf27c4d944b5dc75 100644
--- a/components/scheduler/base/real_time_domain.cc
+++ b/components/scheduler/base/real_time_domain.cc
@@ -30,6 +30,12 @@ base::TimeTicks RealTimeDomain::Now() const {
return task_queue_manager_->delegate()->NowTicks();
}
+base::TimeTicks RealTimeDomain::ComputeDelayedRunTime(
+ base::TimeTicks time_domain_now,
+ base::TimeDelta delay) const {
+ return time_domain_now + delay;
+}
+
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
@@ -59,5 +65,4 @@ void RealTimeDomain::AsValueIntoInternal(
const char* RealTimeDomain::GetName() const {
return "RealTimeDomain";
}
-
} // namespace scheduler
« no previous file with comments | « components/scheduler/base/real_time_domain.h ('k') | components/scheduler/base/task_queue_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698