Lines Matching refs:edgeData
196 SkAutoSTMalloc<64, EdgeData> edgeData(inputPolygonSize); in SkInsetConvexPolygon() local
208 &edgeData[i].fInset.fP0, &edgeData[i].fInset.fP1); in SkInsetConvexPolygon()
209 edgeData[i].fIntersection = edgeData[i].fInset.fP0; in SkInsetConvexPolygon()
210 edgeData[i].fTValue = SK_ScalarMin; in SkInsetConvexPolygon()
211 edgeData[i].fValid = true; in SkInsetConvexPolygon()
218 if (!edgeData[prevIndex].fValid) { in SkInsetConvexPolygon()
225 if (compute_intersection(edgeData[prevIndex].fInset, edgeData[currIndex].fInset, in SkInsetConvexPolygon()
228 if (s < edgeData[prevIndex].fTValue) { in SkInsetConvexPolygon()
230 edgeData[prevIndex].fValid = false; in SkInsetConvexPolygon()
235 } else if (edgeData[currIndex].fTValue > SK_ScalarMin && in SkInsetConvexPolygon()
236 intersection.equalsWithinTolerance(edgeData[currIndex].fIntersection, in SkInsetConvexPolygon()
241 edgeData[currIndex].fIntersection = intersection; in SkInsetConvexPolygon()
242 edgeData[currIndex].fTValue = t; in SkInsetConvexPolygon()
250 int side = winding*compute_side(edgeData[currIndex].fInset.fP0, in SkInsetConvexPolygon()
251 edgeData[currIndex].fInset.fP1, in SkInsetConvexPolygon()
252 edgeData[prevIndex].fInset.fP1); in SkInsetConvexPolygon()
253 if (side < 0 && side == winding*compute_side(edgeData[currIndex].fInset.fP0, in SkInsetConvexPolygon()
254 edgeData[currIndex].fInset.fP1, in SkInsetConvexPolygon()
255 edgeData[prevIndex].fInset.fP0)) { in SkInsetConvexPolygon()
257 edgeData[prevIndex].fValid = false; in SkInsetConvexPolygon()
263 edgeData[currIndex].fValid = false; in SkInsetConvexPolygon()
278 if (edgeData[i].fValid && (currIndex == -1 || in SkInsetConvexPolygon()
279 !edgeData[i].fIntersection.equalsWithinTolerance((*insetPolygon)[currIndex], in SkInsetConvexPolygon()
281 *insetPolygon->push() = edgeData[i].fIntersection; in SkInsetConvexPolygon()