aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-04-03 15:44:18 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-03 20:13:50 +0000
commit62473ad906624de3922f18be3cc782a13040a9e2 (patch)
treeb58ed810a9f022a6a6dea92d112fc90303d653b6 /src/gpu
parenta4f581a475b2f4990d0e1d0a1703107cb429bcb2 (diff)
Check if fan point is finite in GrAAConvexPathRenderer.
Bug: skia:7775 Change-Id: I47818ebbaa4f325233832823df5982f8ca3a7efd Reviewed-on: https://skia-review.googlesource.com/118341 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/ops/GrAAConvexPathRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/ops/GrAAConvexPathRenderer.cpp b/src/gpu/ops/GrAAConvexPathRenderer.cpp
index 8ca022263b..90376b2e0e 100644
--- a/src/gpu/ops/GrAAConvexPathRenderer.cpp
+++ b/src/gpu/ops/GrAAConvexPathRenderer.cpp
@@ -111,7 +111,7 @@ static bool center_of_mass(const SegmentArray& segments, SkPoint* c) {
// undo the translate of p0 to the origin.
*c = center + p0;
}
- return !SkScalarIsNaN(c->fX) && !SkScalarIsNaN(c->fY);
+ return !SkScalarIsNaN(c->fX) && !SkScalarIsNaN(c->fY) && c->isFinite();
}
static bool compute_vectors(SegmentArray* segments,