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>
This commit is contained in:
parent
caaf211e8d
commit
b50e38562d
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user