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

Unified Diff: Source/core/animation/css/CSSPendingAnimations.h

Issue 73643004: Web Animations: Extract an API for servicing animations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 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 | « Source/core/animation/css/CSSAnimations.cpp ('k') | Source/core/animation/css/CSSPendingAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/css/CSSPendingAnimations.h
diff --git a/Source/core/animation/css/CSSPendingAnimations.h b/Source/core/animation/css/CSSPendingAnimations.h
index 432e403d7cdf34b88dd33cdd956650364c868f43..0ace4c2fffbc4fd0f76e5cb83ceb57f938525c8a 100644
--- a/Source/core/animation/css/CSSPendingAnimations.h
+++ b/Source/core/animation/css/CSSPendingAnimations.h
@@ -40,12 +40,13 @@ namespace WebCore {
// animations when both classes of CSS Animations are triggered by the same recalc
class CSSPendingAnimations FINAL {
public:
- void add(Player* player) { m_pending.append(player); };
- void startPendingAnimations();
+ void add(Player*);
+ void startPendingAnimationsAfterStyleRecalc();
+ void startPendingAnimationsAfterCompositingUpdate();
void notifyCompositorAnimationStarted(double monotonicAnimationStartTime);
private:
- Vector<RefPtr<Player> > m_pending;
+ Vector<std::pair<RefPtr<Player>, double> > m_pending;
Vector<RefPtr<Player> > m_waitingForCompositorAnimationStart;
};
« no previous file with comments | « Source/core/animation/css/CSSAnimations.cpp ('k') | Source/core/animation/css/CSSPendingAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698