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

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

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Format. Created 5 years, 9 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 | « Source/core/animation/AnimationPlayer.cpp ('k') | 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 badad7c28c761dea0c45da560778fdd6c80e4edf..dc339a609fa2f39fcf971fecd551d4416d3a5c02 100644
--- a/Source/core/animation/AnimationTimeline.h
+++ b/Source/core/animation/AnimationTimeline.h
@@ -37,6 +37,7 @@
#include "core/dom/Element.h"
#include "platform/Timer.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebCompositorAnimationTimeline.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
@@ -97,6 +98,8 @@ public:
void setPlaybackRate(double);
double playbackRate() const;
+ WebCompositorAnimationTimeline* compositorTimeline() const { return m_compositorTimeline.get(); }
+
Document* document() { return m_document.get(); }
#if !ENABLE(OILPAN)
void detachFromDocument();
@@ -125,6 +128,8 @@ private:
OwnPtrWillBeMember<PlatformTiming> m_timing;
double m_lastCurrentTimeInternal;
+ OwnPtr<WebCompositorAnimationTimeline> m_compositorTimeline;
+
class AnimationTimelineTiming final : public PlatformTiming {
public:
AnimationTimelineTiming(AnimationTimeline* timeline)
« no previous file with comments | « Source/core/animation/AnimationPlayer.cpp ('k') | Source/core/animation/AnimationTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698