Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: Source/core/animation/SampledEffect.h

Issue 1302463002: Make classes and structures in Source/core/animation fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/animation/PropertyHandle.h ('k') | Source/core/animation/Timing.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/animation/PropertyHandle.h ('k') | Source/core/animation/Timing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698