Chromium Code Reviews| Index: third_party/WebKit/Source/platform/Timer.h |
| diff --git a/third_party/WebKit/Source/platform/Timer.h b/third_party/WebKit/Source/platform/Timer.h |
| index ba16008404cae57b580b8b24b47a90819f0f94fe..e0c372f8f9c49fa6f6030e80af883b5ffb6406e3 100644 |
| --- a/third_party/WebKit/Source/platform/Timer.h |
| +++ b/third_party/WebKit/Source/platform/Timer.h |
| @@ -66,7 +66,7 @@ public: |
| double repeatInterval() const { return m_repeatInterval; } |
| void augmentRepeatInterval(double delta) { |
| - double now = monotonicallyIncreasingTime(); |
| + double now = time(); |
|
Sami
2016/02/03 18:03:44
Sorry to bikeshed but I like the descriptiveness o
alex clarke (OOO till 29th)
2016/02/04 15:00:10
I agree.
|
| setNextFireTime(now, m_nextFireTime - now + delta); |
| m_repeatInterval += delta; |
| } |
| @@ -86,6 +86,8 @@ private: |
| NO_LAZY_SWEEP_SANITIZE_ADDRESS |
| virtual bool canFire() const { return true; } |
| + double time() const; |
| + |
| void setNextFireTime(double now, double delay); |
| void runInternal(); |