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

Unified Diff: Source/core/animation/Keyframe.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/animation/InterpolationType.h ('k') | Source/core/animation/LengthPropertyFunctions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Keyframe.h
diff --git a/Source/core/animation/Keyframe.h b/Source/core/animation/Keyframe.h
index 95650323d5cbf6fafba5a98147e24bfcb2cb9352..527fb9a204ae1344b99b03aef190b4922a5f283f 100644
--- a/Source/core/animation/Keyframe.h
+++ b/Source/core/animation/Keyframe.h
@@ -10,6 +10,7 @@
#include "core/animation/EffectModel.h"
#include "core/animation/PropertyHandle.h"
#include "core/animation/animatable/AnimatableValue.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -20,6 +21,8 @@ class ComputedStyle;
// FIXME: Make Keyframe immutable
class CORE_EXPORT Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(Keyframe);
+ WTF_MAKE_NONCOPYABLE(Keyframe);
public:
virtual ~Keyframe() { }
@@ -53,6 +56,8 @@ public:
DEFINE_INLINE_VIRTUAL_TRACE() { }
class PropertySpecificKeyframe : public NoBaseWillBeGarbageCollectedFinalized<PropertySpecificKeyframe> {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PropertySpecificKeyframe);
+ WTF_MAKE_NONCOPYABLE(PropertySpecificKeyframe);
public:
virtual ~PropertySpecificKeyframe() { }
double offset() const { return m_offset; }
« no previous file with comments | « Source/core/animation/InterpolationType.h ('k') | Source/core/animation/LengthPropertyFunctions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698