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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/Path.h

Issue 1623073003: [SVG] Paint unnormalized paths (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed review comments Created 4 years, 10 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 /* 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 bool hasCurrentPoint() const; 115 bool hasCurrentPoint() const;
116 FloatPoint currentPoint() const; 116 FloatPoint currentPoint() const;
117 117
118 void setWindRule(const WindRule); 118 void setWindRule(const WindRule);
119 119
120 void moveTo(const FloatPoint&); 120 void moveTo(const FloatPoint&);
121 void addLineTo(const FloatPoint&); 121 void addLineTo(const FloatPoint&);
122 void addQuadCurveTo(const FloatPoint& controlPoint, const FloatPoint& endPoi nt); 122 void addQuadCurveTo(const FloatPoint& controlPoint, const FloatPoint& endPoi nt);
123 void addBezierCurveTo(const FloatPoint& controlPoint1, const FloatPoint& con trolPoint2, const FloatPoint& endPoint); 123 void addBezierCurveTo(const FloatPoint& controlPoint1, const FloatPoint& con trolPoint2, const FloatPoint& endPoint);
124 void addArcTo(const FloatPoint&, const FloatPoint&, float radius); 124 void addArcTo(const FloatPoint&, const FloatPoint&, float radius);
125 void addArcTo(const FloatPoint&, const FloatSize& r, float xRotate, bool lar geArc, bool sweep);
125 void closeSubpath(); 126 void closeSubpath();
126 127
127 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);
128 void addRect(const FloatRect&); 129 void addRect(const FloatRect&);
129 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);
130 void addEllipse(const FloatRect&); 131 void addEllipse(const FloatRect&);
131 132
132 void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii); 133 void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii);
133 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);
134 void addRoundedRect(const FloatRoundedRect&); 135 void addRoundedRect(const FloatRoundedRect&);
(...skipping 21 matching lines...) Expand all
156 SkPath m_path; 157 SkPath m_path;
157 }; 158 };
158 159
159 #if ENABLE(ASSERT) 160 #if ENABLE(ASSERT)
160 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle); 161 PLATFORM_EXPORT bool ellipseIsRenderable(float startAngle, float endAngle);
161 #endif 162 #endif
162 163
163 } // namespace blink 164 } // namespace blink
164 165
165 #endif 166 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp ('k') | third_party/WebKit/Source/platform/graphics/Path.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698