Lines Matching refs:shift
37 int shift) { in setLine() argument
42 x0 = SkScalarRoundToFDot6(p0.fX, shift); in setLine()
43 y0 = SkScalarRoundToFDot6(p0.fY, shift); in setLine()
44 x1 = SkScalarRoundToFDot6(p1.fX, shift); in setLine()
45 y1 = SkScalarRoundToFDot6(p1.fY, shift); in setLine()
47 float scale = float(1 << (shift + 6)); in setLine()
181 bool SkQuadraticEdge::setQuadraticWithoutUpdate(const SkPoint pts[3], int shift) { in setQuadraticWithoutUpdate() argument
186 x0 = SkScalarRoundToFDot6(pts[0].fX, shift); in setQuadraticWithoutUpdate()
187 y0 = SkScalarRoundToFDot6(pts[0].fY, shift); in setQuadraticWithoutUpdate()
188 x1 = SkScalarRoundToFDot6(pts[1].fX, shift); in setQuadraticWithoutUpdate()
189 y1 = SkScalarRoundToFDot6(pts[1].fY, shift); in setQuadraticWithoutUpdate()
190 x2 = SkScalarRoundToFDot6(pts[2].fX, shift); in setQuadraticWithoutUpdate()
191 y2 = SkScalarRoundToFDot6(pts[2].fY, shift); in setQuadraticWithoutUpdate()
193 float scale = float(1 << (shift + 6)); in setQuadraticWithoutUpdate()
227 shift = diff_to_shift(dx, dy, shift); in setQuadraticWithoutUpdate()
228 SkASSERT(shift >= 0); in setQuadraticWithoutUpdate()
231 if (shift == 0) { in setQuadraticWithoutUpdate()
232 shift = 1; in setQuadraticWithoutUpdate()
233 } else if (shift > MAX_COEFF_SHIFT) { in setQuadraticWithoutUpdate()
234 shift = MAX_COEFF_SHIFT; in setQuadraticWithoutUpdate()
239 fCurveCount = SkToS8(1 << shift); in setQuadraticWithoutUpdate()
259 fCurveShift = SkToU8(shift - 1); in setQuadraticWithoutUpdate()
265 fQDx = B + (A >> shift); // biased by shift in setQuadraticWithoutUpdate()
266 fQDDx = A >> (shift - 1); // biased by shift in setQuadraticWithoutUpdate()
272 fQDy = B + (A >> shift); // biased by shift in setQuadraticWithoutUpdate()
273 fQDDy = A >> (shift - 1); // biased by shift in setQuadraticWithoutUpdate()
281 int SkQuadraticEdge::setQuadratic(const SkPoint pts[3], int shift) { in setQuadratic() argument
282 if (!setQuadraticWithoutUpdate(pts, shift)) { in setQuadratic()
297 int shift = fCurveShift; in updateQuadratic() local
304 newx = oldx + (dx >> shift); in updateQuadratic()
306 newy = oldy + (dy >> shift); in updateQuadratic()
351 bool SkCubicEdge::setCubicWithoutUpdate(const SkPoint pts[4], int shift, bool sortY) { in setCubicWithoutUpdate() argument
356 x0 = SkScalarRoundToFDot6(pts[0].fX, shift); in setCubicWithoutUpdate()
357 y0 = SkScalarRoundToFDot6(pts[0].fY, shift); in setCubicWithoutUpdate()
358 x1 = SkScalarRoundToFDot6(pts[1].fX, shift); in setCubicWithoutUpdate()
359 y1 = SkScalarRoundToFDot6(pts[1].fY, shift); in setCubicWithoutUpdate()
360 x2 = SkScalarRoundToFDot6(pts[2].fX, shift); in setCubicWithoutUpdate()
361 y2 = SkScalarRoundToFDot6(pts[2].fY, shift); in setCubicWithoutUpdate()
362 x3 = SkScalarRoundToFDot6(pts[3].fX, shift); in setCubicWithoutUpdate()
363 y3 = SkScalarRoundToFDot6(pts[3].fY, shift); in setCubicWithoutUpdate()
365 float scale = float(1 << (shift + 6)); in setCubicWithoutUpdate()
403 shift = diff_to_shift(dx, dy) + 1; in setCubicWithoutUpdate()
406 SkASSERT(shift > 0); in setCubicWithoutUpdate()
407 if (shift > MAX_COEFF_SHIFT) { in setCubicWithoutUpdate()
408 shift = MAX_COEFF_SHIFT; in setCubicWithoutUpdate()
416 int downShift = shift + upShift - 10; in setCubicWithoutUpdate()
419 upShift = 10 - shift; in setCubicWithoutUpdate()
423 fCurveCount = SkToS8(SkLeftShift(-1, shift)); in setCubicWithoutUpdate()
424 fCurveShift = SkToU8(shift); in setCubicWithoutUpdate()
432 fCDx = B + (C >> shift) + (D >> 2*shift); // biased by shift in setCubicWithoutUpdate()
433 fCDDx = 2*C + (3*D >> (shift - 1)); // biased by 2*shift in setCubicWithoutUpdate()
434 fCDDDx = 3*D >> (shift - 1); // biased by 2*shift in setCubicWithoutUpdate()
441 fCDy = B + (C >> shift) + (D >> 2*shift); // biased by shift in setCubicWithoutUpdate()
442 fCDDy = 2*C + (3*D >> (shift - 1)); // biased by 2*shift in setCubicWithoutUpdate()
443 fCDDDy = 3*D >> (shift - 1); // biased by 2*shift in setCubicWithoutUpdate()
451 int SkCubicEdge::setCubic(const SkPoint pts[4], int shift) { in setCubic() argument
452 if (!this->setCubicWithoutUpdate(pts, shift)) { in setCubic()