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