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" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 double applyTo); | 53 double applyTo); |
54 | 54 |
55 private: | 55 private: |
56 struct InterpolationRecord { | 56 struct InterpolationRecord { |
57 InterpolationRecord(PassRefPtr<Interpolation> interpolation, | 57 InterpolationRecord(PassRefPtr<Interpolation> interpolation, |
58 PassRefPtr<TimingFunction> easing, | 58 PassRefPtr<TimingFunction> easing, |
59 double start, | 59 double start, |
60 double end, | 60 double end, |
61 double applyFrom, | 61 double applyFrom, |
62 double applyTo) | 62 double applyTo) |
63 : m_interpolation(interpolation), | 63 : m_interpolation(std::move(interpolation)), |
64 m_easing(easing), | 64 m_easing(std::move(easing)), |
65 m_start(start), | 65 m_start(start), |
66 m_end(end), | 66 m_end(end), |
67 m_applyFrom(applyFrom), | 67 m_applyFrom(applyFrom), |
68 m_applyTo(applyTo) {} | 68 m_applyTo(applyTo) {} |
69 | 69 |
70 RefPtr<Interpolation> m_interpolation; | 70 RefPtr<Interpolation> m_interpolation; |
71 RefPtr<TimingFunction> m_easing; | 71 RefPtr<TimingFunction> m_easing; |
72 double m_start; | 72 double m_start; |
73 double m_end; | 73 double m_end; |
74 double m_applyFrom; | 74 double m_applyFrom; |
75 double m_applyTo; | 75 double m_applyTo; |
76 }; | 76 }; |
77 | 77 |
78 bool m_isPopulated; | 78 bool m_isPopulated; |
79 Vector<InterpolationRecord> m_interpolations; | 79 Vector<InterpolationRecord> m_interpolations; |
80 }; | 80 }; |
81 | 81 |
82 } // namespace blink | 82 } // namespace blink |
83 | 83 |
84 #endif // InterpolationEffect_h | 84 #endif // InterpolationEffect_h |
OLD | NEW |