diff options
author | bsalomon <bsalomon@google.com> | 2016-06-09 06:03:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-09 06:03:38 -0700 |
commit | a058786ae3cd9402194de94f6658a19efe3f34ef (patch) | |
tree | 51a0edc0a1f59cd46e3fdbf5b617ca63fd875551 /src/utils | |
parent | a9e878c836994bce695274b4c28890290139dcdf (diff) |
Make SkDashPathEffect fail for stroke+fill style (in addition to fill style)
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2048183002
Review-Url: https://codereview.chromium.org/2048183002
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/SkDashPath.cpp | 3 |
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; } |