diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrPathUtils.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrPathUtils.cpp b/src/gpu/GrPathUtils.cpp index 74a53e9e09..d69481218e 100644 --- a/src/gpu/GrPathUtils.cpp +++ b/src/gpu/GrPathUtils.cpp @@ -543,6 +543,9 @@ void GrPathUtils::convertCubicToQuads(const SkPoint p[4], if (!p[0].isFinite() || !p[1].isFinite() || !p[2].isFinite() || !p[3].isFinite()) { return; } + if (!SkScalarIsFinite(tolScale)) { + return; + } SkPoint chopped[10]; int count = SkChopCubicAtInflections(p, chopped); @@ -563,6 +566,9 @@ void GrPathUtils::convertCubicToQuadsConstrainToTangents(const SkPoint p[4], if (!p[0].isFinite() || !p[1].isFinite() || !p[2].isFinite() || !p[3].isFinite()) { return; } + if (!SkScalarIsFinite(tolScale)) { + return; + } SkPoint chopped[10]; int count = SkChopCubicAtInflections(p, chopped); |