diff options
author | Hal Canary <halcanary@google.com> | 2017-02-13 11:03:23 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-13 18:24:11 +0000 |
commit | 385468f6e277bdfd7d1a57467413c31658175690 (patch) | |
tree | 946de6d976bad4b8c017aaaadc12c56eaa14ec57 /src/pdf/SkPDFUtils.h | |
parent | ea479576ec5866bff533d1f76faf86fdeb8b3753 (diff) |
SkPDF: better tolerance path conversion to quadratics
BUG=chromium:691386
Change-Id: I2cb9be7dd606b2ba61ff609f9fd81a55655901f6
Reviewed-on: https://skia-review.googlesource.com/8381
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Cary Clark <caryclark@google.com>
Diffstat (limited to 'src/pdf/SkPDFUtils.h')
-rw-r--r-- | src/pdf/SkPDFUtils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pdf/SkPDFUtils.h b/src/pdf/SkPDFUtils.h index 964689f4f2..5c9e46b381 100644 --- a/src/pdf/SkPDFUtils.h +++ b/src/pdf/SkPDFUtils.h @@ -45,10 +45,10 @@ void AppendCubic(SkScalar ctl1X, SkScalar ctl1Y, SkScalar dstX, SkScalar dstY, SkWStream* content); void AppendRectangle(const SkRect& rect, SkWStream* content); void EmitPath(const SkPath& path, SkPaint::Style paintStyle, - bool doConsumeDegerates, SkWStream* content); + bool doConsumeDegerates, SkWStream* content, SkScalar tolerance = 0.25f); inline void EmitPath(const SkPath& path, SkPaint::Style paintStyle, - SkWStream* content) { - SkPDFUtils::EmitPath(path, paintStyle, true, content); + SkWStream* content, SkScalar tolerance = 0.25f) { + SkPDFUtils::EmitPath(path, paintStyle, true, content, tolerance); } void ClosePath(SkWStream* content); void PaintPath(SkPaint::Style style, SkPath::FillType fill, |