Index: cc/animation/animation.cc |
diff --git a/cc/animation/animation.cc b/cc/animation/animation.cc |
index 214b8bfc47f30529c38625724e002e2eb1845395..b509cfd994fceae049e3415cf914518f89592706 100644 |
--- a/cc/animation/animation.cc |
+++ b/cc/animation/animation.cc |
@@ -167,6 +167,12 @@ double Animation::TrimTimeToCurrentIteration(double monotonic_time) const { |
// subtract all time spent paused. |
trimmed -= start_time_ + total_paused_time_; |
+ // If we're just starting or we're waiting on receiving a start time, |
+ // time is 'stuck' at the initial state. |
+ if ((run_state_ == Starting && !has_set_start_time()) || |
+ needs_synchronized_start_time()) |
+ trimmed = time_offset_; |
+ |
// Zero is always the start of the animation. |
if (trimmed <= 0) |
return 0; |