diff options
author | bsalomon <bsalomon@google.com> | 2016-06-13 10:22:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-13 10:22:48 -0700 |
commit | 398e3f4b9f67e0c7f635e68cae1ff7f42213bbfc (patch) | |
tree | ed4f532937b72b00c9521aa90980033d041a1f2c /src/gpu/GrShape.cpp | |
parent | 2ec06c9b1c861d456b85ffe48b27e4dcae4800cb (diff) |
Add control over whether lines are special cased in SkDashPath. Disable when called from GrShape.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2055253002
Review-Url: https://codereview.chromium.org/2055253002
Diffstat (limited to 'src/gpu/GrShape.cpp')
-rw-r--r-- | src/gpu/GrShape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrShape.cpp b/src/gpu/GrShape.cpp index d2bec72cbf..11b2d38971 100644 --- a/src/gpu/GrShape.cpp +++ b/src/gpu/GrShape.cpp @@ -211,8 +211,8 @@ GrShape::GrShape(const GrShape& parent, GrStyle::Apply apply, SkScalar scale) { // Should we consider bounds? Would have to include in key, but it'd be nice to know // if the bounds actually modified anything before including in key. SkStrokeRec strokeRec = parent.fStyle.strokeRec(); - strokeRec.setResScale(scale); - if (!pe->filterPath(fPath.get(), *srcForPathEffect, &strokeRec, nullptr)) { + if (!parent.fStyle.applyPathEffectToPath(fPath.get(), &strokeRec, *srcForPathEffect, + scale)) { // If the path effect fails then we continue as though there was no path effect. // If the original was a rrect that we couldn't canonicalize because of the path // effect, then do so now. |