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

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

Issue 2155143002: Fix a bug that could occasionaly cause setInterval to stop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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.h
diff --git a/components/scheduler/renderer/throttled_time_domain.h b/components/scheduler/renderer/throttled_time_domain.h
index f274e8c081ec5e9deda710b5a06e77bd8b23d45c..c530415ece566b75bda5158b3948e11ec500fe17 100644
--- a/components/scheduler/renderer/throttled_time_domain.h
+++ b/components/scheduler/renderer/throttled_time_domain.h
@@ -10,17 +10,15 @@
namespace scheduler {
-// A time domain that's mostly a VirtualTimeDomain except that real time is used
-// when computing the delayed runtime.
+// A time domain that's mostly a VirtualTimeDomain except that real time is
+// reported by BlinkNow.
class SCHEDULER_EXPORT ThrottledTimeDomain : public VirtualTimeDomain {
public:
ThrottledTimeDomain(TimeDomain::Observer* observer,
base::TickClock* tick_clock);
~ThrottledTimeDomain() override;
- // TimeDomain implementation:
- base::TimeTicks ComputeDelayedRunTime(base::TimeTicks time_domain_now,
- base::TimeDelta delay) const override;
+ base::TimeTicks BlinkNow() const override;
const char* GetName() const override;
private:

Powered by Google App Engine
This is Rietveld 408576698