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 #include "core/animation/SampledEffect.h" | 5 #include "core/animation/SampledEffect.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 SampledEffect::SampledEffect(KeyframeEffect* effect) | 9 SampledEffect::SampledEffect(KeyframeEffectReadOnly* effect) |
10 : m_effect(effect), | 10 : m_effect(effect), |
11 m_sequenceNumber(effect->animation()->sequenceNumber()), | 11 m_sequenceNumber(effect->animation()->sequenceNumber()), |
12 m_priority(effect->getPriority()) {} | 12 m_priority(effect->getPriority()) {} |
13 | 13 |
14 void SampledEffect::clear() { | 14 void SampledEffect::clear() { |
15 m_effect = nullptr; | 15 m_effect = nullptr; |
16 m_interpolations.clear(); | 16 m_interpolations.clear(); |
17 } | 17 } |
18 | 18 |
19 bool SampledEffect::willNeverChange() const { | 19 bool SampledEffect::willNeverChange() const { |
(...skipping 16 matching lines...) Expand all Loading... |
36 if (!interpolation->dependsOnUnderlyingValue()) | 36 if (!interpolation->dependsOnUnderlyingValue()) |
37 replacedProperties.add(interpolation->getProperty()); | 37 replacedProperties.add(interpolation->getProperty()); |
38 } | 38 } |
39 } | 39 } |
40 | 40 |
41 DEFINE_TRACE(SampledEffect) { | 41 DEFINE_TRACE(SampledEffect) { |
42 visitor->trace(m_effect); | 42 visitor->trace(m_effect); |
43 } | 43 } |
44 | 44 |
45 } // namespace blink | 45 } // namespace blink |
OLD | NEW |