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

Side by Side Diff: third_party/WebKit/Source/core/animation/SVGPathSegInterpolationFunctions.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 SVGPathSegInterpolationFunctions_h 5 #ifndef SVGPathSegInterpolationFunctions_h
6 #define SVGPathSegInterpolationFunctions_h 6 #define SVGPathSegInterpolationFunctions_h
7 7
8 #include "core/animation/InterpolableValue.h" 8 #include "core/animation/InterpolableValue.h"
9 #include "core/svg/SVGPathData.h" 9 #include "core/svg/SVGPathData.h"
10 #include <memory>
11 10
12 namespace blink { 11 namespace blink {
13 12
14 struct PathCoordinates { 13 struct PathCoordinates {
15 double initialX = 0; 14 double initialX = 0;
16 double initialY = 0; 15 double initialY = 0;
17 double currentX = 0; 16 double currentX = 0;
18 double currentY = 0; 17 double currentY = 0;
19 }; 18 };
20 19
21 class SVGPathSegInterpolationFunctions { 20 class SVGPathSegInterpolationFunctions {
22 STATIC_ONLY(SVGPathSegInterpolationFunctions); 21 STATIC_ONLY(SVGPathSegInterpolationFunctions);
23 public: 22 public:
24 static std::unique_ptr<InterpolableValue> consumePathSeg(const PathSegmentDa ta&, PathCoordinates& currentCoordinates); 23 static PassOwnPtr<InterpolableValue> consumePathSeg(const PathSegmentData&, PathCoordinates& currentCoordinates);
25 static PathSegmentData consumeInterpolablePathSeg(const InterpolableValue&, SVGPathSegType, PathCoordinates& currentCoordinates); 24 static PathSegmentData consumeInterpolablePathSeg(const InterpolableValue&, SVGPathSegType, PathCoordinates& currentCoordinates);
26 }; 25 };
27 26
28 } // namespace blink 27 } // namespace blink
29 28
30 #endif // SVGPathSegInterpolationFunctions_h 29 #endif // SVGPathSegInterpolationFunctions_h
31 30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698