| Index: src/core/SkStroke.cpp
|
| diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp
|
| index 370cbdc09bbe7b2ea10225991269d600f64c84a8..9c26294129fced80b19ef535ad4f27ac9d196cc6 100644
|
| --- a/src/core/SkStroke.cpp
|
| +++ b/src/core/SkStroke.cpp
|
| @@ -406,11 +406,11 @@ static bool has_valid_tangent(const SkPath::Iter* iter) {
|
| }
|
|
|
| void SkPathStroker::lineTo(const SkPoint& currPt, const SkPath::Iter* iter) {
|
| - if (SkStrokerPriv::CapFactory(SkPaint::kButt_Cap) == fCapper
|
| - && fPrevPt.equalsWithinTolerance(currPt, SK_ScalarNearlyZero * fInvResScale)) {
|
| + bool teenyLine = fPrevPt.equalsWithinTolerance(currPt, SK_ScalarNearlyZero * fInvResScale);
|
| + if (SkStrokerPriv::CapFactory(SkPaint::kButt_Cap) == fCapper && teenyLine) {
|
| return;
|
| }
|
| - if (fPrevPt == currPt && (fJoinCompleted || (iter && has_valid_tangent(iter)))) {
|
| + if (teenyLine && (fJoinCompleted || (iter && has_valid_tangent(iter)))) {
|
| return;
|
| }
|
| SkVector normal, unitNormal;
|
|
|