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

Unified Diff: Source/platform/graphics/Path.cpp

Issue 1176843002: Removing unused functions from Path -intersectPath() -normalAngleAtLength() -windRule() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/graphics/Path.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Path.cpp
diff --git a/Source/platform/graphics/Path.cpp b/Source/platform/graphics/Path.cpp
index 89875f5d836a73bd56e9c3fa0a5086af87b81c8b..896f424fc822f3e54045513b06a84d6a45fdbe38 100644
--- a/Source/platform/graphics/Path.cpp
+++ b/Source/platform/graphics/Path.cpp
@@ -168,14 +168,6 @@ FloatPoint Path::pointAtLength(float length, bool& ok) const
return point;
}
-float Path::normalAngleAtLength(float length, bool& ok) const
-{
- FloatPoint point;
- float normal;
- ok = pointAndNormalAtLength(length, point, normal);
- return normal;
-}
-
static bool calculatePointAndNormalOnPath(SkPathMeasure& measure, SkScalar length, FloatPoint& point, float& normalAngle, SkScalar* accumulatedLength = 0)
{
do {
@@ -273,13 +265,6 @@ FloatPoint Path::currentPoint() const
return FloatPoint(quietNaN, quietNaN);
}
-WindRule Path::windRule() const
-{
- return m_path.getFillType() == SkPath::kEvenOdd_FillType
- ? RULE_EVENODD
- : RULE_NONZERO;
-}
-
void Path::setWindRule(const WindRule rule)
{
m_path.setFillType(WebCoreWindRuleToSkFillType(rule));
@@ -494,11 +479,6 @@ bool Path::subtractPath(const Path& other)
return Op(m_path, other.m_path, kDifference_SkPathOp, &m_path);
}
-bool Path::intersectPath(const Path& other)
-{
- return Op(m_path, other.m_path, kIntersect_SkPathOp, &m_path);
-}
-
bool Path::unionPath(const Path& other)
{
return Op(m_path, other.m_path, kUnion_SkPathOp, &m_path);
« no previous file with comments | « Source/platform/graphics/Path.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698