From b50e38562d1e1cab1773e3ee44c4b01113858ab4 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 29 Jan 2018 15:27:33 -0500 Subject: handle conics in 1D patheffect Bug: skia::7507 Change-Id: Iab68d17c0950ffa2e5d5c20754b3f524f4b75a71 Reviewed-on: https://skia-review.googlesource.com/101442 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- src/effects/Sk1DPathEffect.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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]); -- cgit v1.2.3