| 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 #ifndef CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ | 5 #ifndef CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ |
| 6 #define CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ | 6 #define CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 210 } |
| 211 | 211 |
| 212 // AnimationCurve implementation | 212 // AnimationCurve implementation |
| 213 base::TimeDelta Duration() const override; | 213 base::TimeDelta Duration() const override; |
| 214 std::unique_ptr<AnimationCurve> Clone() const override; | 214 std::unique_ptr<AnimationCurve> Clone() const override; |
| 215 | 215 |
| 216 // TransformAnimationCurve implementation | 216 // TransformAnimationCurve implementation |
| 217 gfx::Transform GetValue(base::TimeDelta t) const override; | 217 gfx::Transform GetValue(base::TimeDelta t) const override; |
| 218 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 218 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
| 219 gfx::BoxF* bounds) const override; | 219 gfx::BoxF* bounds) const override; |
| 220 bool AffectsScale() const override; | |
| 221 bool PreservesAxisAlignment() const override; | 220 bool PreservesAxisAlignment() const override; |
| 222 bool IsTranslation() const override; | 221 bool IsTranslation() const override; |
| 223 bool AnimationStartScale(bool forward_direction, | 222 bool AnimationStartScale(bool forward_direction, |
| 224 float* start_scale) const override; | 223 float* start_scale) const override; |
| 225 bool MaximumTargetScale(bool forward_direction, | 224 bool MaximumTargetScale(bool forward_direction, |
| 226 float* max_scale) const override; | 225 float* max_scale) const override; |
| 227 | 226 |
| 228 private: | 227 private: |
| 229 KeyframedTransformAnimationCurve(); | 228 KeyframedTransformAnimationCurve(); |
| 230 | 229 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 std::vector<std::unique_ptr<FilterKeyframe>> keyframes_; | 269 std::vector<std::unique_ptr<FilterKeyframe>> keyframes_; |
| 271 std::unique_ptr<TimingFunction> timing_function_; | 270 std::unique_ptr<TimingFunction> timing_function_; |
| 272 double scaled_duration_; | 271 double scaled_duration_; |
| 273 | 272 |
| 274 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); | 273 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); |
| 275 }; | 274 }; |
| 276 | 275 |
| 277 } // namespace cc | 276 } // namespace cc |
| 278 | 277 |
| 279 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ | 278 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ |
| OLD | NEW |