Lines Matching refs:intercept

281 void SkStrike::OffsetResults(const SkGlyph::Intercept* intercept, SkScalar scale,  in OffsetResults()  argument
286 *array++ = intercept->fInterval[index] * scale + xPos; in OffsetResults()
292 void SkStrike::AddInterval(SkScalar val, SkGlyph::Intercept* intercept) { in AddInterval() argument
293 intercept->fInterval[0] = SkTMin(intercept->fInterval[0], val); in AddInterval()
294 intercept->fInterval[1] = SkTMax(intercept->fInterval[1], val); in AddInterval()
298 bool yAxis, SkGlyph::Intercept* intercept) { in AddPoints() argument
302 AddInterval(*(&pts[i].fX + yAxis), intercept); in AddPoints()
308 SkGlyph::Intercept* intercept) { in AddLine() argument
313 : pts[0].fX + t * (pts[1].fX - pts[0].fX), intercept); in AddLine()
318 SkGlyph::Intercept* intercept) { in AddQuad() argument
326 AddInterval(*(&pt.fX + yAxis), intercept); in AddQuad()
331 SkGlyph::Intercept* intercept) { in AddCubic() argument
339 AddInterval(*(&pt.fX + yAxis), intercept); in AddCubic()
348 const SkGlyph::Intercept* intercept = glyph->fPathData->fIntercept; in MatchBounds() local
349 while (intercept) { in MatchBounds()
350 if (bounds[0] == intercept->fBounds[0] && bounds[1] == intercept->fBounds[1]) { in MatchBounds()
351 return intercept; in MatchBounds()
353 intercept = intercept->fNext; in MatchBounds()
369 SkGlyph::Intercept* intercept = fAlloc.make<SkGlyph::Intercept>(); in findIntercepts() local
370 intercept->fNext = glyph->fPathData->fIntercept; in findIntercepts()
371 intercept->fBounds[0] = bounds[0]; in findIntercepts()
372 intercept->fBounds[1] = bounds[1]; in findIntercepts()
373 intercept->fInterval[0] = SK_ScalarMax; in findIntercepts()
374 intercept->fInterval[1] = SK_ScalarMin; in findIntercepts()
375 glyph->fPathData->fIntercept = intercept; in findIntercepts()
389 AddLine(pts, bounds[0], yAxis, intercept); in findIntercepts()
390 AddLine(pts, bounds[1], yAxis, intercept); in findIntercepts()
391 AddPoints(pts, 2, bounds, yAxis, intercept); in findIntercepts()
397 AddQuad(pts, bounds[0], yAxis, intercept); in findIntercepts()
398 AddQuad(pts, bounds[1], yAxis, intercept); in findIntercepts()
399 AddPoints(pts, 3, bounds, yAxis, intercept); in findIntercepts()
408 AddCubic(pts, bounds[0], yAxis, intercept); in findIntercepts()
409 AddCubic(pts, bounds[1], yAxis, intercept); in findIntercepts()
410 AddPoints(pts, 4, bounds, yAxis, intercept); in findIntercepts()
419 if (intercept->fInterval[0] >= intercept->fInterval[1]) { in findIntercepts()
420 intercept->fInterval[0] = SK_ScalarMax; in findIntercepts()
421 intercept->fInterval[1] = SK_ScalarMin; in findIntercepts()
424 OffsetResults(intercept, scale, xPos, array, count); in findIntercepts()