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

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

Issue 717003002: Animations: Allow document animation timelines to have a playback rate (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review changes Created 6 years, 1 month 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 | Source/core/animation/AnimationTimeline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationTimeline.h
diff --git a/Source/core/animation/AnimationTimeline.h b/Source/core/animation/AnimationTimeline.h
index 52650095c14df569cc17fceac1dabafa537f00c3..1f1abbbb2f7e6f1563617f1630f4146d04f1905e 100644
--- a/Source/core/animation/AnimationTimeline.h
+++ b/Source/core/animation/AnimationTimeline.h
@@ -91,6 +91,9 @@ public:
void setOutdatedAnimationPlayer(AnimationPlayer*);
bool hasOutdatedAnimationPlayer() const;
+ void setPlaybackRate(double);
+ double playbackRate() const;
+
Document* document() { return m_document.get(); }
#if !ENABLE(OILPAN)
void detachFromDocument();
@@ -110,6 +113,10 @@ private:
WillBeHeapHashSet<RefPtrWillBeMember<AnimationPlayer>> m_playersNeedingUpdate;
WillBeHeapHashSet<RawPtrWillBeWeakMember<AnimationPlayer>> m_players;
+ double m_currentTimeSnapshot;
+ double m_rawCurrentTimeSnapshot;
+ double m_playbackRate;
+
friend class SMILTimeContainer;
static const double s_minimumDelay;
« no previous file with comments | « no previous file | Source/core/animation/AnimationTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698