| 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/KeyframeEffectReadOnly.h" | 10 #include "core/animation/KeyframeEffectReadOnly.h" |
| 11 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
| 12 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class SVGElement; | |
| 17 | |
| 18 // Associates the results of sampling an EffectModel with metadata used for | 16 // Associates the results of sampling an EffectModel with metadata used for |
| 19 // effect ordering and managing composited animations. | 17 // effect ordering and managing composited animations. |
| 20 class SampledEffect : public GarbageCollectedFinalized<SampledEffect> { | 18 class SampledEffect : public GarbageCollectedFinalized<SampledEffect> { |
| 21 WTF_MAKE_NONCOPYABLE(SampledEffect); | 19 WTF_MAKE_NONCOPYABLE(SampledEffect); |
| 22 | 20 |
| 23 public: | 21 public: |
| 24 static SampledEffect* create(KeyframeEffectReadOnly* animation) { | 22 static SampledEffect* create(KeyframeEffectReadOnly* animation) { |
| 25 return new SampledEffect(animation); | 23 return new SampledEffect(animation); |
| 26 } | 24 } |
| 27 | 25 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 48 | 46 |
| 49 WeakMember<KeyframeEffectReadOnly> m_effect; | 47 WeakMember<KeyframeEffectReadOnly> m_effect; |
| 50 Vector<RefPtr<Interpolation>> m_interpolations; | 48 Vector<RefPtr<Interpolation>> m_interpolations; |
| 51 const unsigned m_sequenceNumber; | 49 const unsigned m_sequenceNumber; |
| 52 KeyframeEffectReadOnly::Priority m_priority; | 50 KeyframeEffectReadOnly::Priority m_priority; |
| 53 }; | 51 }; |
| 54 | 52 |
| 55 } // namespace blink | 53 } // namespace blink |
| 56 | 54 |
| 57 #endif // SampledEffect_h | 55 #endif // SampledEffect_h |
| OLD | NEW |