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

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

Issue 1730153005: [cherrypick] Fix computation of runtime for throttled tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: no changes 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 0abea9493c342d8a478fa69a2477a442d573070d..97c63da5cdaba218d07f2acd5e69ca7d36ff2cab 100644
--- a/components/scheduler/base/virtual_time_domain.cc
+++ b/components/scheduler/base/virtual_time_domain.cc
@@ -28,6 +28,12 @@ LazyNow VirtualTimeDomain::CreateLazyNow() {
return LazyNow(now_);
}
+base::TimeTicks VirtualTimeDomain::ComputeDelayedRunTime(
+ base::TimeTicks time_domain_now,
+ base::TimeDelta delay) const {
+ return time_domain_now + delay;
+}
+
void VirtualTimeDomain::RequestWakeup(LazyNow* lazy_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