Index: src/gpu/GrStyle.cpp |
diff --git a/src/gpu/GrStyle.cpp b/src/gpu/GrStyle.cpp |
index 3698c31ff82094f6b2fa549a3550e4d527c57b48..bb1f03dc72a52fef3e840dd8b752a1fea2dff8c3 100644 |
--- a/src/gpu/GrStyle.cpp |
+++ b/src/gpu/GrStyle.cpp |
@@ -106,7 +106,8 @@ void GrStyle::initPathEffect(SkPathEffect* pe) { |
} |
SkPathEffect::DashInfo info; |
if (SkPathEffect::kDash_DashType == pe->asADash(&info)) { |
- if (fStrokeRec.getStyle() != SkStrokeRec::kFill_Style) { |
+ SkStrokeRec::Style recStyle = fStrokeRec.getStyle(); |
+ if (recStyle != SkStrokeRec::kFill_Style && recStyle != SkStrokeRec::kStrokeAndFill_Style) { |
fDashInfo.fType = SkPathEffect::kDash_DashType; |
fDashInfo.fIntervals.reset(info.fCount); |
fDashInfo.fPhase = info.fPhase; |