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

Unified Diff: cc/animation/animation.h

Issue 423373003: CC: Support fractional iteration count on compositor animations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and review changes Created 6 years, 4 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
« no previous file with comments | « no previous file | cc/animation/animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation.h
diff --git a/cc/animation/animation.h b/cc/animation/animation.h
index 02bb2c6013ce967f90122575a05bb6484b45b4a1..508651d5558cd6b66325b1e6cb37b80300391774 100644
--- a/cc/animation/animation.h
+++ b/cc/animation/animation.h
@@ -68,8 +68,8 @@ class CC_EXPORT Animation {
// This is the number of times that the animation will play. If this
// value is zero the animation will not play. If it is negative, then
// the animation will loop indefinitely.
- int iterations() const { return iterations_; }
- void set_iterations(int n) { iterations_ = n; }
+ double iterations() const { return iterations_; }
+ void set_iterations(double n) { iterations_ = n; }
base::TimeTicks start_time() const { return start_time_; }
@@ -161,7 +161,7 @@ class CC_EXPORT Animation {
TargetProperty target_property_;
RunState run_state_;
- int iterations_;
+ double iterations_;
base::TimeTicks start_time_;
Direction direction_;
« no previous file with comments | « no previous file | cc/animation/animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698