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

Unified Diff: Source/core/animation/InterpolationType.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/Interpolation.h ('k') | Source/core/animation/Keyframe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/InterpolationType.h
diff --git a/Source/core/animation/InterpolationType.h b/Source/core/animation/InterpolationType.h
index b32232d5f5d09eeec32fa15a382579b7021a4e96..77da872c29b748b96a801765fccd7f05e1a3d009 100644
--- a/Source/core/animation/InterpolationType.h
+++ b/Source/core/animation/InterpolationType.h
@@ -10,6 +10,7 @@
#include "core/animation/PrimitiveInterpolation.h"
#include "core/animation/StringKeyframe.h"
#include "platform/heap/Handle.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -19,15 +20,21 @@ class StyleResolverState;
// - Converts from animation keyframe(s) to interpolation compatible representations: maybeConvertPairwise() and maybeConvertSingle()
// - Applies interpolation compatible representations of values to a StyleResolverState: apply()
class InterpolationType {
+ WTF_MAKE_FAST_ALLOCATED(InterpolationType);
+ WTF_MAKE_NONCOPYABLE(InterpolationType);
public:
CSSPropertyID property() const { return m_property; }
// Represents logic for determining whether a conversion decision is no longer valid given the current environment.
class ConversionChecker : public NoBaseWillBeGarbageCollectedFinalized<ConversionChecker> {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ConversionChecker);
+ WTF_MAKE_NONCOPYABLE(ConversionChecker);
public:
virtual ~ConversionChecker() { }
virtual bool isValid(const StyleResolverState&) const = 0;
DEFINE_INLINE_VIRTUAL_TRACE() { }
+ protected:
+ ConversionChecker() { }
};
using ConversionCheckers = WillBeHeapVector<OwnPtrWillBeMember<ConversionChecker>>;
« no previous file with comments | « Source/core/animation/Interpolation.h ('k') | Source/core/animation/Keyframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698