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

Side by Side Diff: Source/core/animation/TransformSVGInterpolation.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/TimingInput.h ('k') | Source/core/animation/animatable/AnimatableColor.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 TransformSVGInterpolation_h 5 #ifndef TransformSVGInterpolation_h
6 #define TransformSVGInterpolation_h 6 #define TransformSVGInterpolation_h
7 7
8 #include "core/animation/SVGInterpolation.h" 8 #include "core/animation/SVGInterpolation.h"
9 #include "core/svg/SVGTransformList.h" 9 #include "core/svg/SVGTransformList.h"
10 #include "wtf/Allocator.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class TransformSVGInterpolation { 14 class TransformSVGInterpolation {
15 STATIC_ONLY(TransformSVGInterpolation);
14 public: 16 public:
15 typedef SVGTransformList ListType; 17 typedef SVGTransformList ListType;
16 typedef SVGTransformType NonInterpolableType; 18 typedef SVGTransformType NonInterpolableType;
17 19
18 static bool canCreateFrom(SVGTransform* start, SVGTransform* end); 20 static bool canCreateFrom(SVGTransform* start, SVGTransform* end);
19 21
20 static PassRefPtrWillBeRawPtr<SVGTransformList> createList(const SVGAnimated PropertyBase&) 22 static PassRefPtrWillBeRawPtr<SVGTransformList> createList(const SVGAnimated PropertyBase&)
21 { 23 {
22 return SVGTransformList::create(); 24 return SVGTransformList::create();
23 } 25 }
24 26
25 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGTran sform*, const SVGAnimatedPropertyBase*, SVGTransformType*); 27 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGTran sform*, const SVGAnimatedPropertyBase*, SVGTransformType*);
26 28
27 static PassRefPtrWillBeRawPtr<SVGTransform> fromInterpolableValue(const Inte rpolableValue&, SVGTransformType, const SVGElement*); 29 static PassRefPtrWillBeRawPtr<SVGTransform> fromInterpolableValue(const Inte rpolableValue&, SVGTransformType, const SVGElement*);
28 }; 30 };
29 31
30 } 32 }
31 33
32 #endif // TransformSVGInterpolation_h 34 #endif // TransformSVGInterpolation_h
OLDNEW
« no previous file with comments | « Source/core/animation/TimingInput.h ('k') | Source/core/animation/animatable/AnimatableColor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698