| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved. |
| 3 * 2006 Rob Buis <buis@kde.org> | 3 * 2006 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 4 * Copyright (C) 2007-2008 Torch Mobile, Inc. |
| 5 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef Path_h | 29 #ifndef Path_h |
| 30 #define Path_h | 30 #define Path_h |
| 31 | 31 |
| 32 #include "platform/PlatformExport.h" | 32 #include "platform/PlatformExport.h" |
| 33 #include "platform/geometry/RoundedRect.h" | 33 #include "platform/geometry/FloatRoundedRect.h" |
| 34 #include "platform/graphics/GraphicsTypes.h" | 34 #include "platform/graphics/GraphicsTypes.h" |
| 35 #include "third_party/skia/include/core/SkPath.h" | 35 #include "third_party/skia/include/core/SkPath.h" |
| 36 #include "third_party/skia/include/core/SkPathMeasure.h" | 36 #include "third_party/skia/include/core/SkPathMeasure.h" |
| 37 #include "wtf/FastAllocBase.h" | 37 #include "wtf/FastAllocBase.h" |
| 38 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
| 39 | 39 |
| 40 class SkPath; | 40 class SkPath; |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 void addArcTo(const FloatPoint&, const FloatPoint&, float radius); | 125 void addArcTo(const FloatPoint&, const FloatPoint&, float radius); |
| 126 void closeSubpath(); | 126 void closeSubpath(); |
| 127 | 127 |
| 128 void addArc(const FloatPoint&, float radius, float startAngle, float endAngl
e, bool anticlockwise); | 128 void addArc(const FloatPoint&, float radius, float startAngle, float endAngl
e, bool anticlockwise); |
| 129 void addRect(const FloatRect&); | 129 void addRect(const FloatRect&); |
| 130 void addEllipse(const FloatPoint&, float radiusX, float radiusY, float rotat
ion, float startAngle, float endAngle, bool anticlockwise); | 130 void addEllipse(const FloatPoint&, float radiusX, float radiusY, float rotat
ion, float startAngle, float endAngle, bool anticlockwise); |
| 131 void addEllipse(const FloatRect&); | 131 void addEllipse(const FloatRect&); |
| 132 | 132 |
| 133 void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii); | 133 void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii); |
| 134 void addRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const
FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& b
ottomRightRadius); | 134 void addRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const
FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& b
ottomRightRadius); |
| 135 void addRoundedRect(const RoundedRect&); | 135 void addRoundedRect(const FloatRoundedRect&); |
| 136 | 136 |
| 137 void addPath(const Path&, const AffineTransform&); | 137 void addPath(const Path&, const AffineTransform&); |
| 138 | 138 |
| 139 void translate(const FloatSize&); | 139 void translate(const FloatSize&); |
| 140 | 140 |
| 141 const SkPath& skPath() const { return m_path; } | 141 const SkPath& skPath() const { return m_path; } |
| 142 | 142 |
| 143 void apply(void* info, PathApplierFunction) const; | 143 void apply(void* info, PathApplierFunction) const; |
| 144 void transform(const AffineTransform&); | 144 void transform(const AffineTransform&); |
| 145 | 145 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 158 SkPath m_path; | 158 SkPath m_path; |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 #if ENABLE(ASSERT) | 161 #if ENABLE(ASSERT) |
| 162 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); | 162 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); |
| 163 #endif | 163 #endif |
| 164 | 164 |
| 165 } // namespace blink | 165 } // namespace blink |
| 166 | 166 |
| 167 #endif | 167 #endif |
| OLD | NEW |