aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkDevice.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-01-29 14:32:38 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-29 19:52:21 +0000
commitcaaf211e8dd094db6b7408cecdf531ce7d91382c (patch)
tree80e4434f7486ec1fea7489728de38998cc0754a5 /src/core/SkDevice.cpp
parent7f1a074600610aead91d8b5e85a5dd45370e11ea (diff)
handle conics in text warper
Bug: skia:7507 Change-Id: I8d0d9b5f51f13ee52ed42c40664b8bafb5ff9420 Reviewed-on: https://skia-review.googlesource.com/101420 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkDevice.cpp')
-rw-r--r--src/core/SkDevice.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp
index 85136722b5..e404d16c8d 100644
--- a/src/core/SkDevice.cpp
+++ b/src/core/SkDevice.cpp
@@ -403,6 +403,10 @@ static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas,
morphpoints(dstP, &srcP[1], 2, meas, matrix);
dst->quadTo(dstP[0], dstP[1]);
break;
+ case SkPath::kConic_Verb:
+ morphpoints(dstP, &srcP[1], 2, meas, matrix);
+ dst->conicTo(dstP[0], dstP[1], iter.conicWeight());
+ break;
case SkPath::kCubic_Verb:
morphpoints(dstP, &srcP[1], 3, meas, matrix);
dst->cubicTo(dstP[0], dstP[1], dstP[2]);