| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 double scaled_duration() const { return scaled_duration_; } | 209 double scaled_duration() const { return scaled_duration_; } |
| 210 void set_scaled_duration(double scaled_duration) { | 210 void set_scaled_duration(double scaled_duration) { |
| 211 scaled_duration_ = scaled_duration; | 211 scaled_duration_ = scaled_duration; |
| 212 } | 212 } |
| 213 | 213 |
| 214 // AnimationCurve implementation | 214 // AnimationCurve implementation |
| 215 base::TimeDelta Duration() const override; | 215 base::TimeDelta Duration() const override; |
| 216 std::unique_ptr<AnimationCurve> Clone() const override; | 216 std::unique_ptr<AnimationCurve> Clone() const override; |
| 217 | 217 |
| 218 // TransformAnimationCurve implementation | 218 // TransformAnimationCurve implementation |
| 219 gfx::Transform GetValue(base::TimeDelta t) const override; | 219 TransformOperations GetValue(base::TimeDelta t) const override; |
| 220 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 220 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
| 221 gfx::BoxF* bounds) const override; | 221 gfx::BoxF* bounds) const override; |
| 222 bool PreservesAxisAlignment() const override; | 222 bool PreservesAxisAlignment() const override; |
| 223 bool IsTranslation() const override; | 223 bool IsTranslation() const override; |
| 224 bool AnimationStartScale(bool forward_direction, | 224 bool AnimationStartScale(bool forward_direction, |
| 225 float* start_scale) const override; | 225 float* start_scale) const override; |
| 226 bool MaximumTargetScale(bool forward_direction, | 226 bool MaximumTargetScale(bool forward_direction, |
| 227 float* max_scale) const override; | 227 float* max_scale) const override; |
| 228 | 228 |
| 229 private: | 229 private: |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 std::vector<std::unique_ptr<FilterKeyframe>> keyframes_; | 271 std::vector<std::unique_ptr<FilterKeyframe>> keyframes_; |
| 272 std::unique_ptr<TimingFunction> timing_function_; | 272 std::unique_ptr<TimingFunction> timing_function_; |
| 273 double scaled_duration_; | 273 double scaled_duration_; |
| 274 | 274 |
| 275 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); | 275 DISALLOW_COPY_AND_ASSIGN(KeyframedFilterAnimationCurve); |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 } // namespace cc | 278 } // namespace cc |
| 279 | 279 |
| 280 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ | 280 #endif // CC_ANIMATION_KEYFRAMED_ANIMATION_CURVE_H_ |
| OLD | NEW |