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

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: Rename. Create cc::AnimationPlayer on PreCommit if needed. 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
Index: Source/core/animation/AnimationTimeline.h
diff --git a/Source/core/animation/AnimationTimeline.h b/Source/core/animation/AnimationTimeline.h
index badad7c28c761dea0c45da560778fdd6c80e4edf..c995bf881ce00f750afda1349286bb1be2bd91e8 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,9 @@ public:
void setPlaybackRate(double);
double playbackRate() const;
+ WebCompositorAnimationTimeline* compositorTimeline() const { return m_compositorTimeline.get(); }
+ void updateCompositedLayersAttachments();
+
Document* document() { return m_document.get(); }
#if !ENABLE(OILPAN)
void detachFromDocument();
@@ -125,6 +129,8 @@ private:
OwnPtrWillBeMember<PlatformTiming> m_timing;
double m_lastCurrentTimeInternal;
+ OwnPtr<WebCompositorAnimationTimeline> m_compositorTimeline;
+
class AnimationTimelineTiming final : public PlatformTiming {
public:
AnimationTimelineTiming(AnimationTimeline* timeline)

Powered by Google App Engine
This is Rietveld 408576698