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