Lines Matching refs:slope
261 SkFixed slope = quick_div(dx, dy); in setLine() local
262 SkFixed absSlope = SkAbs32(slope); in setLine()
265 fDX = slope; in setLine()
270 fDY = dx == 0 || slope == 0 ? SK_MaxS32 : absSlope < kInverseTableSize in setLine()
283 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) { in updateLine() argument
309 SkASSERT(slope < SK_MaxS32); in updateLine()
311 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine()
313 fDX = slope; in updateLine()
318 fDY = (dx == 0 || slope == 0) in updateLine()
377 SkFixed slope; in updateQuadratic() local
384 slope = diffY ? quick_div(SkFixedToFDot6(newx - fSnappedX), diffY) in updateQuadratic()
387 newSnappedX = newx - SkFixedMul(slope, newy - newSnappedY); in updateQuadratic()
392 slope = diffY ? quick_div(SkFixedToFDot6(newx - fSnappedX), diffY) in updateQuadratic()
405 slope = diffY ? quick_div((newx - fSnappedX) >> 10, diffY) : SK_MaxS32; in updateQuadratic()
407 if (slope < SK_MaxS32) { in updateQuadratic()
408 success = this->updateLine(fSnappedX, fSnappedY, newSnappedX, newSnappedY, slope); in updateQuadratic()
496 SkFixed slope = SkFixedToFDot6(newSnappedY - fSnappedY) == 0 in updateCubic() local
501 success = this->updateLine(oldx, fSnappedY, newx, newSnappedY, slope); in updateCubic()