Lines Matching refs:slope
261 SkFixed slope = quick_div(dx, dy);
262 SkFixed absSlope = SkAbs32(slope);
265 fDX = slope;
270 fDY = dx == 0 || slope == 0 ? SK_MaxS32 : absSlope < kInverseTableSize
281 // Therefore, we'll let the outter function compute the slope once and send in the value.
283 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) {
284 // Since we send in the slope, we can no longer snap y inside this function.
285 // If we don't send in the slope, or we do some more sophisticated snapping, this function
309 SkASSERT(slope < SK_MaxS32);
311 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope));
313 fDX = slope;
318 fDY = (dx == 0 || slope == 0)
377 SkFixed slope;
384 slope = diffY ? quick_div(SkFixedToFDot6(newx - fSnappedX), diffY)
387 newSnappedX = newx - SkFixedMul(slope, newy - newSnappedY);
392 slope = diffY ? quick_div(SkFixedToFDot6(newx - fSnappedX), diffY)
405 slope = diffY ? quick_div((newx - fSnappedX) >> 10, diffY) : SK_MaxS32;
407 if (slope < SK_MaxS32) {
408 success = this->updateLine(fSnappedX, fSnappedY, newSnappedX, newSnappedY, slope);
496 SkFixed slope = SkFixedToFDot6(newSnappedY - fSnappedY) == 0
501 success = this->updateLine(oldx, fSnappedY, newx, newSnappedY, slope);