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 SampledEffect_h | 5 #ifndef SampledEffect_h |
6 #define SampledEffect_h | 6 #define SampledEffect_h |
7 | 7 |
8 #include "core/animation/Animation.h" | 8 #include "core/animation/Animation.h" |
9 #include "core/animation/Interpolation.h" | 9 #include "core/animation/Interpolation.h" |
10 #include "core/animation/KeyframeEffect.h" | 10 #include "core/animation/KeyframeEffect.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 const Vector<RefPtr<Interpolation>>& interpolations() const { | 30 const Vector<RefPtr<Interpolation>>& interpolations() const { |
31 return m_interpolations; | 31 return m_interpolations; |
32 } | 32 } |
33 Vector<RefPtr<Interpolation>>& mutableInterpolations() { | 33 Vector<RefPtr<Interpolation>>& mutableInterpolations() { |
34 return m_interpolations; | 34 return m_interpolations; |
35 } | 35 } |
36 | 36 |
37 KeyframeEffect* effect() const { return m_effect; } | 37 KeyframeEffect* effect() const { return m_effect; } |
38 unsigned sequenceNumber() const { return m_sequenceNumber; } | 38 unsigned sequenceNumber() const { return m_sequenceNumber; } |
39 KeyframeEffect::Priority priority() const { return m_priority; } | 39 KeyframeEffectReadOnly::Priority priority() const { return m_priority; } |
40 bool willNeverChange() const; | 40 bool willNeverChange() const; |
41 void removeReplacedInterpolations(const HashSet<PropertyHandle>&); | 41 void removeReplacedInterpolations(const HashSet<PropertyHandle>&); |
42 void updateReplacedProperties(HashSet<PropertyHandle>&); | 42 void updateReplacedProperties(HashSet<PropertyHandle>&); |
43 | 43 |
44 DECLARE_TRACE(); | 44 DECLARE_TRACE(); |
45 | 45 |
46 private: | 46 private: |
47 SampledEffect(KeyframeEffect*); | 47 SampledEffect(KeyframeEffect*); |
48 | 48 |
49 WeakMember<KeyframeEffect> m_effect; | 49 WeakMember<KeyframeEffect> m_effect; |
50 Vector<RefPtr<Interpolation>> m_interpolations; | 50 Vector<RefPtr<Interpolation>> m_interpolations; |
51 const unsigned m_sequenceNumber; | 51 const unsigned m_sequenceNumber; |
52 KeyframeEffect::Priority m_priority; | 52 KeyframeEffectReadOnly::Priority m_priority; |
53 }; | 53 }; |
54 | 54 |
55 } // namespace blink | 55 } // namespace blink |
56 | 56 |
57 #endif // SampledEffect_h | 57 #endif // SampledEffect_h |
OLD | NEW |