Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 enum FloatBlendMode { | 28 enum FloatBlendMode { |
| 29 BlendHorizontal, | 29 BlendHorizontal, |
| 30 BlendVertical | 30 BlendVertical |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 class SVGPathSource; | 33 class SVGPathSource; |
| 34 | 34 |
| 35 class SVGPathBlender : public NoBaseWillBeGarbageCollectedFinalized<SVGPathBlend er> { | 35 class SVGPathBlender : public NoBaseWillBeGarbageCollectedFinalized<SVGPathBlend er> { |
| 36 WTF_MAKE_NONCOPYABLE(SVGPathBlender); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVE D; | 36 WTF_MAKE_NONCOPYABLE(SVGPathBlender); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVE D; |
| 37 public: | 37 public: |
| 38 SVGPathBlender(); | 38 SVGPathBlender(SVGPathSource* fromSource, SVGPathSource* toSource, SVGPathCo nsumer*); |
|
f(malita)
2014/11/24 16:56:57
I think the sources should be const&, but AFAICT t
| |
| 39 | 39 |
| 40 bool addAnimatedPath(SVGPathSource*, SVGPathSource*, SVGPathConsumer*, unsig ned repeatCount); | 40 bool addAnimatedPath(unsigned repeatCount); |
| 41 bool blendAnimatedPath(float, SVGPathSource*, SVGPathSource*, SVGPathConsume r*); | 41 bool blendAnimatedPath(float); |
| 42 void cleanup(); | |
| 43 | 42 |
| 44 void trace(Visitor*); | 43 void trace(Visitor*); |
| 45 | 44 |
| 46 private: | 45 private: |
| 47 bool blendMoveToSegment(); | 46 bool blendMoveToSegment(); |
| 48 bool blendLineToSegment(); | 47 bool blendLineToSegment(); |
| 49 bool blendLineToHorizontalSegment(); | 48 bool blendLineToHorizontalSegment(); |
| 50 bool blendLineToVerticalSegment(); | 49 bool blendLineToVerticalSegment(); |
| 51 bool blendCurveToCubicSegment(); | 50 bool blendCurveToCubicSegment(); |
| 52 bool blendCurveToCubicSmoothSegment(); | 51 bool blendCurveToCubicSmoothSegment(); |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 67 PathCoordinateMode m_fromMode; | 66 PathCoordinateMode m_fromMode; |
| 68 PathCoordinateMode m_toMode; | 67 PathCoordinateMode m_toMode; |
| 69 float m_progress; | 68 float m_progress; |
| 70 unsigned m_addTypesCount; | 69 unsigned m_addTypesCount; |
| 71 bool m_isInFirstHalfOfAnimation; | 70 bool m_isInFirstHalfOfAnimation; |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace blink | 73 } // namespace blink |
| 75 | 74 |
| 76 #endif // SVGPathBlender_h | 75 #endif // SVGPathBlender_h |
| OLD | NEW |