Home | History | Annotate | Download | only in core

Lines Matching refs:intercept

254 void SkGlyphCache::OffsetResults(const SkGlyph::Intercept* intercept, SkScalar scale,
259 *array++ = intercept->fInterval[index] * scale + xPos;
265 void SkGlyphCache::AddInterval(SkScalar val, SkGlyph::Intercept* intercept) {
266 intercept->fInterval[0] = SkTMin(intercept->fInterval[0], val);
267 intercept->fInterval[1] = SkTMax(intercept->fInterval[1], val);
271 bool yAxis, SkGlyph::Intercept* intercept) {
275 AddInterval(*(&pts[i].fX + yAxis), intercept);
281 SkGlyph::Intercept* intercept) {
286 : pts[0].fX + t * (pts[1].fX - pts[0].fX), intercept);
291 SkGlyph::Intercept* intercept) {
299 AddInterval(*(&pt.fX + yAxis), intercept);
304 SkGlyph::Intercept* intercept) {
312 AddInterval(*(&pt.fX + yAxis), intercept);
316 const SkGlyph::Intercept* SkGlyphCache::MatchBounds(const SkGlyph* glyph,
321 const SkGlyph::Intercept* intercept = glyph->fPathData->fIntercept;
322 while (intercept) {
323 if (bounds[0] == intercept->fBounds[0] && bounds[1] == intercept->fBounds[1]) {
324 return intercept;
326 intercept = intercept->fNext;
333 const SkGlyph::Intercept* match = MatchBounds(glyph, bounds);
342 SkGlyph::Intercept* intercept =
343 (SkGlyph::Intercept* ) fGlyphAlloc.allocThrow(sizeof(SkGlyph::Intercept));
344 intercept->fNext = glyph->fPathData->fIntercept;
345 intercept->fBounds[0] = bounds[0];
346 intercept->fBounds[1] = bounds[1];
347 intercept->fInterval[0] = SK_ScalarMax;
348 intercept->fInterval[1] = SK_ScalarMin;
349 glyph->fPathData->fIntercept = intercept;
363 AddLine(pts, bounds[0], yAxis, intercept);
364 AddLine(pts, bounds[1], yAxis, intercept);
365 AddPoints(pts, 2, bounds, yAxis, intercept);
371 AddQuad(pts, bounds[0], yAxis, intercept);
372 AddQuad(pts, bounds[1], yAxis, intercept);
373 AddPoints(pts, 3, bounds, yAxis, intercept);
382 AddCubic(pts, bounds[0], yAxis, intercept);
383 AddCubic(pts, bounds[1], yAxis, intercept);
384 AddPoints(pts, 4, bounds, yAxis, intercept);
393 if (intercept->fInterval[0] >= intercept->fInterval[1]) {
394 intercept->fInterval[0] = SK_ScalarMax;
395 intercept->fInterval[1] = SK_ScalarMin;
398 OffsetResults(intercept, scale, xPos, array, count);