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

Unified Diff: components/scheduler/renderer/throttled_time_domain.cc

Issue 1743813002: Revert of [cherrypick] Fix computation of runtime for throttled tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: 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/renderer/throttled_time_domain.cc
diff --git a/components/scheduler/renderer/throttled_time_domain.cc b/components/scheduler/renderer/throttled_time_domain.cc
deleted file mode 100644
index 76a94a2a01a0a17de431057ffa03918254806c73..0000000000000000000000000000000000000000
--- a/components/scheduler/renderer/throttled_time_domain.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/scheduler/renderer/throttled_time_domain.h"
-
-#include "base/time/tick_clock.h"
-
-namespace scheduler {
-
-ThrottledTimeDomain::ThrottledTimeDomain(TimeDomain::Observer* observer,
- base::TickClock* tick_clock)
- : VirtualTimeDomain(observer, tick_clock->NowTicks()),
- tick_clock_(tick_clock) {}
-
-ThrottledTimeDomain::~ThrottledTimeDomain() {}
-
-base::TimeTicks ThrottledTimeDomain::ComputeDelayedRunTime(
- base::TimeTicks,
- base::TimeDelta delay) const {
- // We ignore the |time_domain_now| parameter since its the virtual time but we
- // need to use the current real time when computing the delayed runtime. If
- // don't do that, throttled timers may fire sooner than expected.
- return tick_clock_->NowTicks() + delay;
-}
-
-const char* ThrottledTimeDomain::GetName() const {
- return "ThrottledTimeDomain";
-}
-
-} // namespace scheduler
« no previous file with comments | « components/scheduler/renderer/throttled_time_domain.h ('k') | components/scheduler/renderer/throttling_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698