| 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" |
| 11 #include "wtf/Allocator.h" |
| 11 #include "wtf/BitArray.h" | 12 #include "wtf/BitArray.h" |
| 12 #include "wtf/Vector.h" | 13 #include "wtf/Vector.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 class SVGElement; | 17 class SVGElement; |
| 17 | 18 |
| 18 class SampledEffect : public NoBaseWillBeGarbageCollected<SampledEffect> { | 19 class SampledEffect : public NoBaseWillBeGarbageCollected<SampledEffect> { |
| 20 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(SampledEffect); |
| 21 WTF_MAKE_NONCOPYABLE(SampledEffect); |
| 19 public: | 22 public: |
| 20 static PassOwnPtrWillBeRawPtr<SampledEffect> create(KeyframeEffect* animatio
n, PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> i
nterpolations) | 23 static PassOwnPtrWillBeRawPtr<SampledEffect> create(KeyframeEffect* animatio
n, PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> i
nterpolations) |
| 21 { | 24 { |
| 22 return adoptPtrWillBeNoop(new SampledEffect(animation, interpolations)); | 25 return adoptPtrWillBeNoop(new SampledEffect(animation, interpolations)); |
| 23 } | 26 } |
| 24 | 27 |
| 25 void clear(); | 28 void clear(); |
| 26 | 29 |
| 27 const WillBeHeapVector<RefPtrWillBeMember<Interpolation>>& interpolations()
const { return *m_interpolations; } | 30 const WillBeHeapVector<RefPtrWillBeMember<Interpolation>>& interpolations()
const { return *m_interpolations; } |
| 28 #if ENABLE(OILPAN) | 31 #if ENABLE(OILPAN) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 47 RawPtrWillBeWeakMember<KeyframeEffect> m_effect; | 50 RawPtrWillBeWeakMember<KeyframeEffect> m_effect; |
| 48 RefPtrWillBeMember<Animation> m_animation; | 51 RefPtrWillBeMember<Animation> m_animation; |
| 49 OwnPtrWillBeMember<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> m_in
terpolations; | 52 OwnPtrWillBeMember<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> m_in
terpolations; |
| 50 const unsigned m_sequenceNumber; | 53 const unsigned m_sequenceNumber; |
| 51 KeyframeEffect::Priority m_priority; | 54 KeyframeEffect::Priority m_priority; |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 } // namespace blink | 57 } // namespace blink |
| 55 | 58 |
| 56 #endif // SampledEffect_h | 59 #endif // SampledEffect_h |
| OLD | NEW |