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 #include "wtf/PassOwnPtr.h" |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 | 16 |
16 // Stores all adjacent pairs of keyframes (represented by Interpolations) in a K
eyframeEffectModel | 17 // Stores all adjacent pairs of keyframes (represented by Interpolations) in a K
eyframeEffectModel |
17 // with keyframe offset data preprocessed for more efficient active keyframe pai
r sampling. | 18 // with keyframe offset data preprocessed for more efficient active keyframe pai
r sampling. |
18 class CORE_EXPORT InterpolationEffect { | 19 class CORE_EXPORT InterpolationEffect { |
19 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 20 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
20 public: | 21 public: |
21 InterpolationEffect() | 22 InterpolationEffect() |
22 : m_isPopulated(false) | 23 : m_isPopulated(false) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 double m_applyTo; | 60 double m_applyTo; |
60 }; | 61 }; |
61 | 62 |
62 bool m_isPopulated; | 63 bool m_isPopulated; |
63 Vector<InterpolationRecord> m_interpolations; | 64 Vector<InterpolationRecord> m_interpolations; |
64 }; | 65 }; |
65 | 66 |
66 } // namespace blink | 67 } // namespace blink |
67 | 68 |
68 #endif // InterpolationEffect_h | 69 #endif // InterpolationEffect_h |
OLD | NEW |