Index: src/core/SkPath.cpp |
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp |
index fbda7e8772f6770ee71de6748869f1e049d21a18..03bc3170d832015eb12614df5baffc5e90250e2e 100644 |
--- a/src/core/SkPath.cpp |
+++ b/src/core/SkPath.cpp |
@@ -1161,7 +1161,7 @@ void SkPath::addRRect(const SkRRect &rrect, Direction dir, unsigned startIndex) |
this->close(); |
SkPathRef::Editor ed(&fPathRef); |
- ed.setIsRRect(isRRect); |
+ ed.setIsRRect(isRRect, dir, startIndex % 8); |
SkASSERT(this->countVerbs() == initialVerbCount + kVerbs); |
} |
@@ -1259,7 +1259,7 @@ void SkPath::addOval(const SkRect &oval, Direction dir, unsigned startPointIndex |
SkPathRef::Editor ed(&fPathRef); |
- ed.setIsOval(isOval); |
+ ed.setIsOval(isOval, kCCW_Direction == dir, startPointIndex % 4); |
} |
void SkPath::addCircle(SkScalar x, SkScalar y, SkScalar r, Direction dir) { |