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

Unified Diff: cc/animation/layer_animation_controller.cc

Issue 12912010: cc: Convert non-const reference arguments to pointers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ui/compositor Created 7 years, 9 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/transform_operation.h » ('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 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),
« no previous file with comments | « no previous file | cc/animation/transform_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698