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

Unified Diff: Source/core/animation/PrimitiveInterpolation.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/PointSVGInterpolation.h ('k') | Source/core/animation/PropertyHandle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/PrimitiveInterpolation.h
diff --git a/Source/core/animation/PrimitiveInterpolation.h b/Source/core/animation/PrimitiveInterpolation.h
index 885bae0620e8a7de2c54edb304f747cbd9eb9c3b..cad230ecddd1b779fff8e5b26f39984352a236d4 100644
--- a/Source/core/animation/PrimitiveInterpolation.h
+++ b/Source/core/animation/PrimitiveInterpolation.h
@@ -18,6 +18,8 @@ class StyleResolverState;
// Represents a conversion from a pair of keyframes to something compatible with interpolation.
// This is agnostic to whether the keyframes are compatible with each other or not.
class PrimitiveInterpolation : public NoBaseWillBeGarbageCollectedFinalized<PrimitiveInterpolation> {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(PrimitiveInterpolation);
+ WTF_MAKE_NONCOPYABLE(PrimitiveInterpolation);
public:
virtual ~PrimitiveInterpolation() { }
@@ -26,6 +28,9 @@ public:
virtual bool isFlip() const { return false; }
DEFINE_INLINE_VIRTUAL_TRACE() { }
+
+protected:
+ PrimitiveInterpolation() { }
};
// Represents a pair of keyframes that are compatible for "smooth" interpolation eg. "0px" and "100px".
« no previous file with comments | « Source/core/animation/PointSVGInterpolation.h ('k') | Source/core/animation/PropertyHandle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698