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

Unified Diff: cc/animation/layer_animation_controller.cc

Issue 23926003: Take time_offset into account when ticking animations that are Starting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « cc/animation/animation_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/layer_animation_controller.cc
diff --git a/cc/animation/layer_animation_controller.cc b/cc/animation/layer_animation_controller.cc
index 08e2db74e70273792455951da6d2568b3305b17b..04920acc6ef93cde575354ee26a4f4a33911f055 100644
--- a/cc/animation/layer_animation_controller.cc
+++ b/cc/animation/layer_animation_controller.cc
@@ -671,16 +671,6 @@ void LayerAnimationController::TickAnimations(double monotonic_time) {
double trimmed =
active_animations_[i]->TrimTimeToCurrentIteration(monotonic_time);
- // Animation assumes its initial value until it gets the synchronized
- // start time from the impl thread and can start ticking.
- if (active_animations_[i]->needs_synchronized_start_time())
- trimmed = 0;
-
- // A just-started animation assumes its initial value.
- if (active_animations_[i]->run_state() == Animation::Starting &&
- !active_animations_[i]->has_set_start_time())
- trimmed = 0;
-
switch (active_animations_[i]->target_property()) {
case Animation::Transform: {
const TransformAnimationCurve* transform_animation_curve =
« no previous file with comments | « cc/animation/animation_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698