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

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

Issue 23874019: Web Animations CSS: Start running animations on the compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleanup isRunning* and shouldCompositeForAnimation 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
Index: Source/core/animation/DocumentTimeline.h
diff --git a/Source/core/animation/DocumentTimeline.h b/Source/core/animation/DocumentTimeline.h
index d2c64039a0edffb503b8ebf47c9ebad51ea60cad..d15bd01cefb052e454148955daf80bfaede5b140 100644
--- a/Source/core/animation/DocumentTimeline.h
+++ b/Source/core/animation/DocumentTimeline.h
@@ -63,12 +63,15 @@ public:
// Returns whether style recalc was triggered.
bool serviceAnimations();
+ // Creates a player attached to this timeline, but without a start time.
+ PassRefPtr<Player> createPlayer(TimedItem*);
PassRefPtr<Player> play(TimedItem*);
// Called from setReadyState() in Document.cpp to set m_zeroTime to
// performance.timing.domInteractive
void setZeroTime(double);
bool hasStarted() const { return !isNull(m_zeroTime); }
+ double zeroTime() const { return m_zeroTime; }
double currentTime();
void pauseAnimationsForTesting(double);
size_t numberOfActiveAnimationsForTesting() const;

Powered by Google App Engine
This is Rietveld 408576698