OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 InterpolationEffect_h | 5 #ifndef InterpolationEffect_h |
6 #define InterpolationEffect_h | 6 #define InterpolationEffect_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/Interpolation.h" | 9 #include "core/animation/Interpolation.h" |
10 #include "core/animation/Keyframe.h" | 10 #include "core/animation/Keyframe.h" |
11 #include "platform/RuntimeEnabledFeatures.h" | 11 #include "platform/RuntimeEnabledFeatures.h" |
12 #include "platform/animation/TimingFunction.h" | 12 #include "platform/animation/TimingFunction.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 // Stores all adjacent pairs of keyframes (represented by Interpolations) in a K
eyframeEffectModel | 16 // Stores all adjacent pairs of keyframes (represented by Interpolations) in a |
17 // with keyframe offset data preprocessed for more efficient active keyframe pai
r sampling. | 17 // KeyframeEffectModel with keyframe offset data preprocessed for more efficient |
| 18 // active keyframe pair sampling. |
18 class CORE_EXPORT InterpolationEffect { | 19 class CORE_EXPORT InterpolationEffect { |
19 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 20 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
20 | 21 |
21 public: | 22 public: |
22 InterpolationEffect() : m_isPopulated(false) {} | 23 InterpolationEffect() : m_isPopulated(false) {} |
23 | 24 |
24 bool isPopulated() const { return m_isPopulated; } | 25 bool isPopulated() const { return m_isPopulated; } |
25 void setPopulated() { m_isPopulated = true; } | 26 void setPopulated() { m_isPopulated = true; } |
26 | 27 |
27 void clear() { | 28 void clear() { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 double m_applyTo; | 75 double m_applyTo; |
75 }; | 76 }; |
76 | 77 |
77 bool m_isPopulated; | 78 bool m_isPopulated; |
78 Vector<InterpolationRecord> m_interpolations; | 79 Vector<InterpolationRecord> m_interpolations; |
79 }; | 80 }; |
80 | 81 |
81 } // namespace blink | 82 } // namespace blink |
82 | 83 |
83 #endif // InterpolationEffect_h | 84 #endif // InterpolationEffect_h |
OLD | NEW |