OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 PrimitiveInterpolation_h | 5 #ifndef PrimitiveInterpolation_h |
6 #define PrimitiveInterpolation_h | 6 #define PrimitiveInterpolation_h |
7 | 7 |
| 8 #include <cmath> |
| 9 #include <memory> |
8 #include "core/animation/TypedInterpolationValue.h" | 10 #include "core/animation/TypedInterpolationValue.h" |
9 #include "platform/animation/AnimationUtilities.h" | 11 #include "platform/animation/AnimationUtilities.h" |
10 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
11 #include "wtf/PtrUtil.h" | 13 #include "wtf/PtrUtil.h" |
12 #include "wtf/Vector.h" | 14 #include "wtf/Vector.h" |
13 #include <cmath> | |
14 #include <memory> | |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 // Represents an animation's effect between an adjacent pair of | 18 // Represents an animation's effect between an adjacent pair of |
19 // PropertySpecificKeyframes after converting the keyframes to an internal | 19 // PropertySpecificKeyframes after converting the keyframes to an internal |
20 // format with respect to the animation environment and underlying values. | 20 // format with respect to the animation environment and underlying values. |
21 class PrimitiveInterpolation { | 21 class PrimitiveInterpolation { |
22 USING_FAST_MALLOC(PrimitiveInterpolation); | 22 USING_FAST_MALLOC(PrimitiveInterpolation); |
23 WTF_MAKE_NONCOPYABLE(PrimitiveInterpolation); | 23 WTF_MAKE_NONCOPYABLE(PrimitiveInterpolation); |
24 | 24 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 bool isFlip() const final { return true; } | 137 bool isFlip() const final { return true; } |
138 | 138 |
139 std::unique_ptr<TypedInterpolationValue> m_start; | 139 std::unique_ptr<TypedInterpolationValue> m_start; |
140 std::unique_ptr<TypedInterpolationValue> m_end; | 140 std::unique_ptr<TypedInterpolationValue> m_end; |
141 mutable double m_lastFraction; | 141 mutable double m_lastFraction; |
142 }; | 142 }; |
143 | 143 |
144 } // namespace blink | 144 } // namespace blink |
145 | 145 |
146 #endif // PrimitiveInterpolation_h | 146 #endif // PrimitiveInterpolation_h |
OLD | NEW |