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

Unified Diff: cc/animation/layer_animation_controller.cc

Issue 361143002: Impl thread smooth scrolling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 5 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/layer_animation_controller.h ('k') | 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 ddbf35af661d5b45e1bd361eb5d1175d6ec383ba..4e85592303ea3007915d1f577edfe667a2f0277d 100644
--- a/cc/animation/layer_animation_controller.cc
+++ b/cc/animation/layer_animation_controller.cc
@@ -687,7 +687,10 @@ void LayerAnimationController::PromoteStartedAnimations(
animations_[i]->target_property(),
monotonic_time);
started_event.is_impl_only = animations_[i]->is_impl_only();
- events->push_back(started_event);
+ if (started_event.is_impl_only)
+ NotifyAnimationStarted(started_event);
+ else
+ events->push_back(started_event);
}
}
}
@@ -767,7 +770,10 @@ void LayerAnimationController::MarkAnimationsForDeletion(
animations_[j]->target_property(),
monotonic_time);
finished_event.is_impl_only = animations_[j]->is_impl_only();
- events->push_back(finished_event);
+ if (finished_event.is_impl_only)
+ NotifyAnimationFinished(finished_event);
+ else
+ events->push_back(finished_event);
}
animations_[j]->SetRunState(Animation::WaitingForDeletion,
monotonic_time);
« no previous file with comments | « cc/animation/layer_animation_controller.h ('k') | cc/animation/layer_animation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698