From 25c1408c3da9ca90509b84f21a1161ef40052bd1 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 12 Dec 2012 19:15:31 +0000 Subject: revert 6762-6763, since those require new skps to be generated, and we can't do that immediately right now... will re-submit when we can. git-svn-id: http://skia.googlecode.com/svn/trunk@6766 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkPath.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/core/SkPath.cpp') diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index ae1d187d0d..fe9551492d 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp @@ -11,9 +11,9 @@ #include "SkBuffer.h" #include "SkMath.h" #include "SkPathRef.h" -#include "SkRRect.h" #include "SkThread.h" + //////////////////////////////////////////////////////////////////////////// #if SK_DEBUG_PATH_REF @@ -1088,21 +1088,6 @@ void SkPath::addRoundRect(const SkRect& rect, const SkScalar rad[], this->close(); } -void SkPath::addRRect(const SkRRect& rrect, Direction dir) { - const SkRect& bounds = rrect.getBounds(); - - if (rrect.isRect()) { - this->addRect(bounds, dir); - } else if (rrect.isOval()) { - this->addOval(bounds, dir); - } else if (rrect.isSimple()) { - const SkVector& rad = rrect.getSimpleRadii(); - this->addRoundRect(bounds, rad.x(), rad.y(), dir); - } else { - this->addRoundRect(bounds, (const SkScalar*)&rrect.fRadii[0], dir); - } -} - bool SkPath::hasOnlyMoveTos() const { int count = fPathRef->countVerbs(); const uint8_t* verbs = const_cast(fPathRef.get())->verbsMemBegin(); -- cgit v1.2.3