Lines Matching refs:intercept
259 void SkStrike::OffsetResults(const SkGlyph::Intercept* intercept, SkScalar scale, in OffsetResults() argument
264 *array++ = intercept->fInterval[index] * scale + xPos; in OffsetResults()
270 void SkStrike::AddInterval(SkScalar val, SkGlyph::Intercept* intercept) { in AddInterval() argument
271 intercept->fInterval[0] = SkTMin(intercept->fInterval[0], val); in AddInterval()
272 intercept->fInterval[1] = SkTMax(intercept->fInterval[1], val); in AddInterval()
276 bool yAxis, SkGlyph::Intercept* intercept) { in AddPoints() argument
280 AddInterval(*(&pts[i].fX + yAxis), intercept); in AddPoints()
286 SkGlyph::Intercept* intercept) { in AddLine() argument
291 : pts[0].fX + t * (pts[1].fX - pts[0].fX), intercept); in AddLine()
296 SkGlyph::Intercept* intercept) { in AddQuad() argument
304 AddInterval(*(&pt.fX + yAxis), intercept); in AddQuad()
309 SkGlyph::Intercept* intercept) { in AddCubic() argument
317 AddInterval(*(&pt.fX + yAxis), intercept); in AddCubic()
326 const SkGlyph::Intercept* intercept = glyph->fPathData->fIntercept; in MatchBounds() local
327 while (intercept) { in MatchBounds()
328 if (bounds[0] == intercept->fBounds[0] && bounds[1] == intercept->fBounds[1]) { in MatchBounds()
329 return intercept; in MatchBounds()
331 intercept = intercept->fNext; in MatchBounds()
347 SkGlyph::Intercept* intercept = fAlloc.make<SkGlyph::Intercept>(); in findIntercepts() local
348 intercept->fNext = glyph->fPathData->fIntercept; in findIntercepts()
349 intercept->fBounds[0] = bounds[0]; in findIntercepts()
350 intercept->fBounds[1] = bounds[1]; in findIntercepts()
351 intercept->fInterval[0] = SK_ScalarMax; in findIntercepts()
352 intercept->fInterval[1] = SK_ScalarMin; in findIntercepts()
353 glyph->fPathData->fIntercept = intercept; in findIntercepts()
367 AddLine(pts, bounds[0], yAxis, intercept); in findIntercepts()
368 AddLine(pts, bounds[1], yAxis, intercept); in findIntercepts()
369 AddPoints(pts, 2, bounds, yAxis, intercept); in findIntercepts()
375 AddQuad(pts, bounds[0], yAxis, intercept); in findIntercepts()
376 AddQuad(pts, bounds[1], yAxis, intercept); in findIntercepts()
377 AddPoints(pts, 3, bounds, yAxis, intercept); in findIntercepts()
386 AddCubic(pts, bounds[0], yAxis, intercept); in findIntercepts()
387 AddCubic(pts, bounds[1], yAxis, intercept); in findIntercepts()
388 AddPoints(pts, 4, bounds, yAxis, intercept); in findIntercepts()
397 if (intercept->fInterval[0] >= intercept->fInterval[1]) { in findIntercepts()
398 intercept->fInterval[0] = SK_ScalarMax; in findIntercepts()
399 intercept->fInterval[1] = SK_ScalarMin; in findIntercepts()
402 OffsetResults(intercept, scale, xPos, array, count); in findIntercepts()