diff options
author | Mike Reed <reed@google.com> | 2018-01-29 15:27:33 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-29 20:51:22 +0000 |
commit | b50e38562d1e1cab1773e3ee44c4b01113858ab4 (patch) | |
tree | 054a6901f2dbb38c23419701f89f7927bb9d8799 | |
parent | caaf211e8dd094db6b7408cecdf531ce7d91382c (diff) |
handle conics in 1D patheffect
Bug: skia::7507
Change-Id: Iab68d17c0950ffa2e5d5c20754b3f524f4b75a71
Reviewed-on: https://skia-review.googlesource.com/101442
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
-rw-r--r-- | src/effects/Sk1DPathEffect.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/effects/Sk1DPathEffect.cpp b/src/effects/Sk1DPathEffect.cpp index 37cd13052e..8a74c16cda 100644 --- a/src/effects/Sk1DPathEffect.cpp +++ b/src/effects/Sk1DPathEffect.cpp @@ -126,6 +126,11 @@ static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, dst->quadTo(dstP[0], dstP[1]); } break; + case SkPath::kConic_Verb: + if (morphpoints(dstP, &srcP[1], 2, meas, dist)) { + dst->conicTo(dstP[0], dstP[1], iter.conicWeight()); + } + break; case SkPath::kCubic_Verb: if (morphpoints(dstP, &srcP[1], 3, meas, dist)) { dst->cubicTo(dstP[0], dstP[1], dstP[2]); |