Index: cc/animation/layer_animation_controller.cc |
diff --git a/cc/animation/layer_animation_controller.cc b/cc/animation/layer_animation_controller.cc |
index 6ab3528e23ba1b60ac1e8d66a1db0d505237efbf..a213ba7f76bfaa67350b69fb5a7fd41c7049e63f 100644 |
--- a/cc/animation/layer_animation_controller.cc |
+++ b/cc/animation/layer_animation_controller.cc |
@@ -54,7 +54,7 @@ struct HasAnimationId { |
void LayerAnimationController::RemoveAnimation(int animation_id) { |
ScopedPtrVector<Animation>& animations = active_animations_; |
- animations.erase(cc::remove_if(animations, |
+ animations.erase(cc::remove_if(&animations, |
animations.begin(), |
animations.end(), |
HasAnimationId(animation_id)), |
@@ -79,7 +79,7 @@ void LayerAnimationController::RemoveAnimation( |
int animation_id, |
Animation::TargetProperty target_property) { |
ScopedPtrVector<Animation>& animations = active_animations_; |
- animations.erase(cc::remove_if(animations, |
+ animations.erase(cc::remove_if(&animations, |
animations.begin(), |
animations.end(), |
HasAnimationIdAndProperty(animation_id, |
@@ -325,7 +325,7 @@ void LayerAnimationController::RemoveAnimationsCompletedOnMainThread( |
// guaranteeing progress towards loop termination. |
ScopedPtrVector<Animation>& animations = |
controller_impl->active_animations_; |
- animations.erase(cc::remove_if(animations, |
+ animations.erase(cc::remove_if(&animations, |
animations.begin(), |
animations.end(), |
IsCompleted(*this)), |
@@ -514,7 +514,7 @@ static bool IsWaitingForDeletion(Animation* animation) { |
void LayerAnimationController::PurgeAnimationsMarkedForDeletion() { |
ScopedPtrVector<Animation>& animations = active_animations_; |
- animations.erase(cc::remove_if(animations, |
+ animations.erase(cc::remove_if(&animations, |
animations.begin(), |
animations.end(), |
IsWaitingForDeletion), |