| OLD | NEW |
| 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 InterpolatedSVGPathSource_h | 5 #ifndef InterpolatedSVGPathSource_h |
| 6 #define InterpolatedSVGPathSource_h | 6 #define InterpolatedSVGPathSource_h |
| 7 | 7 |
| 8 #include "core/animation/SVGPathSegInterpolationFunctions.h" | 8 #include "core/animation/SVGPathSegInterpolationFunctions.h" |
| 9 #include "core/svg/SVGPathData.h" | 9 #include "core/svg/SVGPathData.h" |
| 10 #include "wtf/Vector.h" | 10 #include "platform/wtf/Vector.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class InterpolatedSVGPathSource { | 14 class InterpolatedSVGPathSource { |
| 15 WTF_MAKE_NONCOPYABLE(InterpolatedSVGPathSource); | 15 WTF_MAKE_NONCOPYABLE(InterpolatedSVGPathSource); |
| 16 STACK_ALLOCATED(); | 16 STACK_ALLOCATED(); |
| 17 | 17 |
| 18 public: | 18 public: |
| 19 InterpolatedSVGPathSource(const InterpolableList& listValue, | 19 InterpolatedSVGPathSource(const InterpolableList& listValue, |
| 20 const Vector<SVGPathSegType>& pathSegTypes) | 20 const Vector<SVGPathSegType>& pathSegTypes) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 43 SVGPathSegInterpolationFunctions::consumeInterpolablePathSeg( | 43 SVGPathSegInterpolationFunctions::consumeInterpolablePathSeg( |
| 44 *m_interpolablePathSegs.get(m_currentIndex), | 44 *m_interpolablePathSegs.get(m_currentIndex), |
| 45 m_pathSegTypes.at(m_currentIndex), m_currentCoordinates); | 45 m_pathSegTypes.at(m_currentIndex), m_currentCoordinates); |
| 46 m_currentIndex++; | 46 m_currentIndex++; |
| 47 return segment; | 47 return segment; |
| 48 } | 48 } |
| 49 | 49 |
| 50 } // namespace blink | 50 } // namespace blink |
| 51 | 51 |
| 52 #endif // InterpolatedSVGPathSource_h | 52 #endif // InterpolatedSVGPathSource_h |
| OLD | NEW |