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

Unified Diff: cc/animation/layer_animation_controller.cc

Issue 13613003: cc: Make animations tick regardless of drawing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop extra statemachine function Created 7 years, 8 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 a213ba7f76bfaa67350b69fb5a7fd41c7049e63f..08ac1d5d797ef7ea2e6d9e36b3a47789dd50a119 100644
--- a/cc/animation/layer_animation_controller.cc
+++ b/cc/animation/layer_animation_controller.cc
@@ -174,15 +174,21 @@ void LayerAnimationController::AccumulatePropertyUpdates(
}
}
-void LayerAnimationController::UpdateState(AnimationEventsVector* events) {
+void LayerAnimationController::UpdateState(bool start_ready_animations,
+ AnimationEventsVector* events) {
if (!HasActiveObserver())
return;
- PromoteStartedAnimations(last_tick_time_, events);
+ if (start_ready_animations)
+ PromoteStartedAnimations(last_tick_time_, events);
+
MarkFinishedAnimations(last_tick_time_);
MarkAnimationsForDeletion(last_tick_time_, events);
- StartAnimationsWaitingForTargetAvailability(last_tick_time_);
- PromoteStartedAnimations(last_tick_time_, events);
+
+ if (start_ready_animations) {
+ StartAnimationsWaitingForTargetAvailability(last_tick_time_);
+ PromoteStartedAnimations(last_tick_time_, events);
+ }
AccumulatePropertyUpdates(last_tick_time_, events);
« 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