From 62473ad906624de3922f18be3cc782a13040a9e2 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Tue, 3 Apr 2018 15:44:18 -0400 Subject: 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 Reviewed-by: Robert Phillips --- src/gpu/ops/GrAAConvexPathRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu/ops') 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, -- cgit v1.2.3