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

Unified Diff: components/scheduler/base/virtual_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
Index: components/scheduler/base/virtual_time_domain.cc
diff --git a/components/scheduler/base/virtual_time_domain.cc b/components/scheduler/base/virtual_time_domain.cc
index db9c4035b29f35eb3668a3ebffdb2ab53375b9ae..86108b20368612f1b6fc903fad2fd59f8733ec30 100644
--- a/components/scheduler/base/virtual_time_domain.cc
+++ b/components/scheduler/base/virtual_time_domain.cc
@@ -33,6 +33,12 @@ base::TimeTicks VirtualTimeDomain::Now() const {
return now_;
}
+base::TimeTicks VirtualTimeDomain::ComputeDelayedRunTime(
+ base::TimeTicks time_domain_now,
+ base::TimeDelta delay) const {
+ return time_domain_now + delay;
+}
+
void VirtualTimeDomain::RequestWakeup(base::TimeTicks now,
base::TimeDelta delay) {
// We don't need to do anything here because the caller of AdvanceTo is
« no previous file with comments | « components/scheduler/base/virtual_time_domain.h ('k') | components/scheduler/renderer/throttled_time_domain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698