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

Unified Diff: cc/animation/keyframed_animation_curve.h

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just the vector Created 5 years, 1 month 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
Index: cc/animation/keyframed_animation_curve.h
diff --git a/cc/animation/keyframed_animation_curve.h b/cc/animation/keyframed_animation_curve.h
index b5dfb14628fabe044de8a155161655fe0a050743..bfa81adfc7c7543f7cc45e3f587db0849c94292f 100644
--- a/cc/animation/keyframed_animation_curve.h
+++ b/cc/animation/keyframed_animation_curve.h
@@ -10,7 +10,6 @@
#include "cc/animation/timing_function.h"
#include "cc/animation/transform_operations.h"
#include "cc/base/cc_export.h"
-#include "cc/base/scoped_ptr_vector.h"
danakj 2015/11/17 01:12:16 include vector tho, iwyu
vmpstr 2015/11/17 23:26:23 Done.
namespace cc {
@@ -136,7 +135,7 @@ class CC_EXPORT KeyframedColorAnimationCurve : public ColorAnimationCurve {
// Always sorted in order of increasing time. No two keyframes have the
// same time.
- ScopedPtrVector<ColorKeyframe> keyframes_;
+ std::vector<scoped_ptr<ColorKeyframe>> keyframes_;
scoped_ptr<TimingFunction> timing_function_;
DISALLOW_COPY_AND_ASSIGN(KeyframedColorAnimationCurve);
@@ -166,7 +165,7 @@ class CC_EXPORT KeyframedFloatAnimationCurve : public FloatAnimationCurve {
// Always sorted in order of increasing time. No two keyframes have the
// same time.
- ScopedPtrVector<FloatKeyframe> keyframes_;
+ std::vector<scoped_ptr<FloatKeyframe>> keyframes_;
scoped_ptr<TimingFunction> timing_function_;
DISALLOW_COPY_AND_ASSIGN(KeyframedFloatAnimationCurve);
@@ -206,7 +205,7 @@ class CC_EXPORT KeyframedTransformAnimationCurve
// Always sorted in order of increasing time. No two keyframes have the
// same time.
- ScopedPtrVector<TransformKeyframe> keyframes_;
+ std::vector<scoped_ptr<TransformKeyframe>> keyframes_;
scoped_ptr<TimingFunction> timing_function_;
DISALLOW_COPY_AND_ASSIGN(KeyframedTransformAnimationCurve);
@@ -238,7 +237,7 @@ class CC_EXPORT KeyframedFilterAnimationCurve
// Always sorted in order of increasing time. No two keyframes have the
// same time.
- ScopedPtrVector<FilterKeyframe> keyframes_;
+ std::vector<scoped_ptr<FilterKeyframe>> keyframes_;
scoped_ptr<TimingFunction> timing_function_;
DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve);

Powered by Google App Engine
This is Rietveld 408576698