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

Unified Diff: cc/animation/layer_animation_controller.cc

Issue 1148333002: cc: Make re-added animations get pushed to the compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/layer_animation_controller_unittest.cc » ('j') | 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 91bfe54e159157f9c14df99dd220890dc62c520b..d148a491f80a8f8c237be3e51f7d5ccc92573d59 100644
--- a/cc/animation/layer_animation_controller.cc
+++ b/cc/animation/layer_animation_controller.cc
@@ -584,15 +584,6 @@ void LayerAnimationController::PushNewAnimationsToImplThread(
if (controller_impl->GetAnimationById(animations_[i]->id()))
continue;
- // If the animation is not running on the impl thread, it does not
- // necessarily mean that it needs to be copied over and started; it may
- // have already finished. In this case, the impl thread animation will
- // have already notified that it has started and the main thread animation
- // will no longer need
- // a synchronized start time.
- if (!animations_[i]->needs_synchronized_start_time())
- continue;
-
// Scroll animations always start at the current scroll offset.
if (animations_[i]->target_property() == Animation::SCROLL_OFFSET) {
gfx::ScrollOffset current_scroll_offset;
« no previous file with comments | « no previous file | cc/animation/layer_animation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698