| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "cc/animation/keyframed_animation_curve.h" | 7 #include "cc/animation/keyframed_animation_curve.h" |
| 8 #include "ui/gfx/animation/tween.h" | 8 #include "ui/gfx/animation/tween.h" |
| 9 #include "ui/gfx/box_f.h" | 9 #include "ui/gfx/geometry/box_f.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 template <class Keyframe> | 15 template <class Keyframe> |
| 16 void InsertKeyframe(scoped_ptr<Keyframe> keyframe, | 16 void InsertKeyframe(scoped_ptr<Keyframe> keyframe, |
| 17 ScopedPtrVector<Keyframe>& keyframes) { | 17 ScopedPtrVector<Keyframe>& keyframes) { |
| 18 // Usually, the keyframes will be added in order, so this loop would be | 18 // Usually, the keyframes will be added in order, so this loop would be |
| 19 // unnecessary and we should skip it if possible. | 19 // unnecessary and we should skip it if possible. |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 bool KeyframedFilterAnimationCurve::HasFilterThatMovesPixels() const { | 412 bool KeyframedFilterAnimationCurve::HasFilterThatMovesPixels() const { |
| 413 for (size_t i = 0; i < keyframes_.size(); ++i) { | 413 for (size_t i = 0; i < keyframes_.size(); ++i) { |
| 414 if (keyframes_[i]->Value().HasFilterThatMovesPixels()) { | 414 if (keyframes_[i]->Value().HasFilterThatMovesPixels()) { |
| 415 return true; | 415 return true; |
| 416 } | 416 } |
| 417 } | 417 } |
| 418 return false; | 418 return false; |
| 419 } | 419 } |
| 420 | 420 |
| 421 } // namespace cc | 421 } // namespace cc |
| OLD | NEW |