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

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

Issue 28263002: Plumb timeToNextEffect through players and animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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/Player.h
diff --git a/Source/core/animation/Player.h b/Source/core/animation/Player.h
index 84ea0e49967476deeb1fd416a8c4d884f773db6b..22979a6d1233589bd11d968018a981d7e4f41b5c 100644
--- a/Source/core/animation/Player.h
+++ b/Source/core/animation/Player.h
@@ -45,7 +45,18 @@ public:
static PassRefPtr<Player> create(DocumentTimeline*, TimedItem*);
// Returns whether this player is still current or in effect.
- bool update();
+ // timeToEffectChange returns:
+ // -1 - if this player is no longer in effect
Timothy Loh 2013/10/18 06:01:27 Maybe change -1 to std::numeric_limits<double>::in
shans 2013/10/21 00:37:57 Done.
+ // 0 - if this player requires an update on the next frame
+ // n - if this player requires an update after 'n' units of time
+ bool update(double& timeToEffectChange);
+
+ inline bool update()
Timothy Loh 2013/10/18 06:01:27 Do we need to keep this version around?
shans 2013/10/21 00:37:57 Yeah. There are a few places where we simply don't
+ {
+ double tmp;
Timothy Loh 2013/10/18 06:01:27 We don't use these sorts of abbreviated variable n
shans 2013/10/21 00:37:57 Changed to 'unused'
+ return update(tmp);
+ }
+
void cancel();
double currentTime() const;
void setCurrentTime(double);

Powered by Google App Engine
This is Rietveld 408576698