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

Unified Diff: third_party/WebKit/Source/core/animation/AnimationTimeline.h

Issue 2616593002: Move core/animation timers to frame-specific task runners. (Closed)
Patch Set: Created 3 years, 12 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CompositorPendingAnimations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/AnimationTimeline.h
diff --git a/third_party/WebKit/Source/core/animation/AnimationTimeline.h b/third_party/WebKit/Source/core/animation/AnimationTimeline.h
index 534d9fe576197b6260fee91112bcad3310397da6..e49f50d473e563374123ed8f3d0f6ba6ac59d112 100644
--- a/third_party/WebKit/Source/core/animation/AnimationTimeline.h
+++ b/third_party/WebKit/Source/core/animation/AnimationTimeline.h
@@ -36,6 +36,7 @@
#include "core/animation/Animation.h"
#include "core/animation/EffectModel.h"
#include "core/dom/Element.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "platform/Timer.h"
#include "platform/animation/CompositorAnimationTimeline.h"
#include "platform/heap/Handle.h"
@@ -138,7 +139,10 @@ class CORE_EXPORT AnimationTimeline
public:
AnimationTimelineTiming(AnimationTimeline* timeline)
: m_timeline(timeline),
- m_timer(this, &AnimationTimelineTiming::timerFired) {
+ m_timer(TaskRunnerHelper::get(TaskType::UnspecedTimer,
+ timeline->document()),
+ this,
+ &AnimationTimelineTiming::timerFired) {
DCHECK(m_timeline);
}
@@ -151,7 +155,7 @@ class CORE_EXPORT AnimationTimeline
private:
Member<AnimationTimeline> m_timeline;
- Timer<AnimationTimelineTiming> m_timer;
+ TaskRunnerTimer<AnimationTimelineTiming> m_timer;
};
friend class AnimationAnimationTimelineTest;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CompositorPendingAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698