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>
This commit is contained in:
Greg Daniel 2018-04-03 15:44:18 -04:00 committed by Skia Commit-Bot
parent a4f581a475
commit 62473ad906

View File

@ -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,