aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-06-09 06:03:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-09 06:03:38 -0700
commita058786ae3cd9402194de94f6658a19efe3f34ef (patch)
tree51a0edc0a1f59cd46e3fdbf5b617ca63fd875551 /src/utils
parenta9e878c836994bce695274b4c28890290139dcdf (diff)
Make SkDashPathEffect fail for stroke+fill style (in addition to fill style)
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/SkDashPath.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/SkDashPath.cpp b/src/utils/SkDashPath.cpp
index d766b0d53e..833c7ccce1 100644
--- a/src/utils/SkDashPath.cpp
+++ b/src/utils/SkDashPath.cpp
@@ -219,7 +219,8 @@ bool SkDashPath::InternalFilter(SkPath* dst, const SkPath& src, SkStrokeRec* rec
SkScalar intervalLength) {
// we do nothing if the src wants to be filled
- if (rec->isFillStyle()) {
+ SkStrokeRec::Style style = rec->getStyle();
+ if (SkStrokeRec::kFill_Style == style || SkStrokeRec::kStrokeAndFill_Style == style) {
return false;
}