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

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

Issue 651103002: Web Animations: Compositor start notification should only apply to animations in a matching group (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years 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/CompositorPendingAnimations.h
diff --git a/Source/core/animation/CompositorPendingAnimations.h b/Source/core/animation/CompositorPendingAnimations.h
index e9163f42e2988c8a64ffa156667747487ab905cb..fc9aaa0130a1e09f438243adc1c1f34e716aa6e0 100644
--- a/Source/core/animation/CompositorPendingAnimations.h
+++ b/Source/core/animation/CompositorPendingAnimations.h
@@ -49,14 +49,14 @@ public:
CompositorPendingAnimations()
: m_timer(this, &CompositorPendingAnimations::timerFired)
+ , m_compositorGroup(1)
{ }
void add(AnimationPlayer*);
// Returns whether we are waiting for an animation to start and should
// service again on the next frame.
bool update(bool startOnCompositor = true);
- void notifyAnimationStarted(double monotonicAnimationStartTime, bool startedOnCompositor);
- void notifyCompositorAnimationStarted(double monotonicAnimationStartTime);
+ void notifyCompositorAnimationStarted(double monotonicAnimationStartTime, int compositorGroup = 0);
void trace(Visitor*);
@@ -66,6 +66,7 @@ private:
WillBeHeapVector<RefPtrWillBeMember<AnimationPlayer> > m_pending;
WillBeHeapVector<RefPtrWillBeMember<AnimationPlayer> > m_waitingForCompositorAnimationStart;
Timer<CompositorPendingAnimations> m_timer;
+ int m_compositorGroup;
};
} // namespace blink
« no previous file with comments | « Source/core/animation/CompositorAnimationsTest.cpp ('k') | Source/core/animation/CompositorPendingAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698