| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/animation/SampledEffect.h" | 6 #include "core/animation/SampledEffect.h" |
| 7 | 7 |
| 8 #include "core/animation/StyleInterpolation.h" | 8 #include "core/animation/StyleInterpolation.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 SampledEffect::SampledEffect(Animation* animation, PassOwnPtrWillBeRawPtr<WillBe
HeapVector<RefPtrWillBeMember<Interpolation> > > interpolations) | 12 SampledEffect::SampledEffect(Animation* animation, PassOwnPtrWillBeRawPtr<WillBe
HeapVector<RefPtrWillBeMember<Interpolation>>> interpolations) |
| 13 : m_animation(animation) | 13 : m_animation(animation) |
| 14 , m_player(animation->player()) | 14 , m_player(animation->player()) |
| 15 , m_interpolations(interpolations) | 15 , m_interpolations(interpolations) |
| 16 , m_sequenceNumber(animation->player()->sequenceNumber()) | 16 , m_sequenceNumber(animation->player()->sequenceNumber()) |
| 17 , m_priority(animation->priority()) | 17 , m_priority(animation->priority()) |
| 18 { | 18 { |
| 19 ASSERT(m_interpolations && !m_interpolations->isEmpty()); | 19 ASSERT(m_interpolations && !m_interpolations->isEmpty()); |
| 20 } | 20 } |
| 21 | 21 |
| 22 void SampledEffect::clear() | 22 void SampledEffect::clear() |
| 23 { | 23 { |
| 24 m_player = nullptr; | 24 m_player = nullptr; |
| 25 m_animation = nullptr; | 25 m_animation = nullptr; |
| 26 m_interpolations->clear(); | 26 m_interpolations->clear(); |
| 27 } | 27 } |
| 28 | 28 |
| 29 DEFINE_TRACE(SampledEffect) | 29 DEFINE_TRACE(SampledEffect) |
| 30 { | 30 { |
| 31 visitor->trace(m_animation); | 31 visitor->trace(m_animation); |
| 32 visitor->trace(m_player); | 32 visitor->trace(m_player); |
| 33 #if ENABLE(OILPAN) | 33 #if ENABLE(OILPAN) |
| 34 visitor->trace(m_interpolations); | 34 visitor->trace(m_interpolations); |
| 35 #endif | 35 #endif |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace blink | 38 } // namespace blink |
| OLD | NEW |