Lines Matching refs:shift
35 int shift) { in setLine() argument
40 x0 = SkScalarRoundToFDot6(p0.fX, shift); in setLine()
41 y0 = SkScalarRoundToFDot6(p0.fY, shift); in setLine()
42 x1 = SkScalarRoundToFDot6(p1.fX, shift); in setLine()
43 y1 = SkScalarRoundToFDot6(p1.fY, shift); in setLine()
45 float scale = float(1 << (shift + 6)); in setLine()
176 int SkQuadraticEdge::setQuadratic(const SkPoint pts[3], int shift) in setQuadratic() argument
182 x0 = SkScalarRoundToFDot6(pts[0].fX, shift); in setQuadratic()
183 y0 = SkScalarRoundToFDot6(pts[0].fY, shift); in setQuadratic()
184 x1 = SkScalarRoundToFDot6(pts[1].fX, shift); in setQuadratic()
185 y1 = SkScalarRoundToFDot6(pts[1].fY, shift); in setQuadratic()
186 x2 = SkScalarRoundToFDot6(pts[2].fX, shift); in setQuadratic()
187 y2 = SkScalarRoundToFDot6(pts[2].fY, shift); in setQuadratic()
189 float scale = float(1 << (shift + 6)); in setQuadratic()
219 shift = diff_to_shift(dx, dy); in setQuadratic()
220 SkASSERT(shift >= 0); in setQuadratic()
223 if (shift == 0) { in setQuadratic()
224 shift = 1; in setQuadratic()
225 } else if (shift > MAX_COEFF_SHIFT) { in setQuadratic()
226 shift = MAX_COEFF_SHIFT; in setQuadratic()
231 fCurveCount = SkToS8(1 << shift); in setQuadratic()
251 fCurveShift = SkToU8(shift - 1); in setQuadratic()
257 fQDx = B + (A >> shift); // biased by shift in setQuadratic()
258 fQDDx = A >> (shift - 1); // biased by shift in setQuadratic()
264 fQDy = B + (A >> shift); // biased by shift in setQuadratic()
265 fQDDy = A >> (shift - 1); // biased by shift in setQuadratic()
282 int shift = fCurveShift; in updateQuadratic() local
289 newx = oldx + (dx >> shift); in updateQuadratic()
291 newy = oldy + (dy >> shift); in updateQuadratic()
335 int SkCubicEdge::setCubic(const SkPoint pts[4], int shift) { in setCubic() argument
340 x0 = SkScalarRoundToFDot6(pts[0].fX, shift); in setCubic()
341 y0 = SkScalarRoundToFDot6(pts[0].fY, shift); in setCubic()
342 x1 = SkScalarRoundToFDot6(pts[1].fX, shift); in setCubic()
343 y1 = SkScalarRoundToFDot6(pts[1].fY, shift); in setCubic()
344 x2 = SkScalarRoundToFDot6(pts[2].fX, shift); in setCubic()
345 y2 = SkScalarRoundToFDot6(pts[2].fY, shift); in setCubic()
346 x3 = SkScalarRoundToFDot6(pts[3].fX, shift); in setCubic()
347 y3 = SkScalarRoundToFDot6(pts[3].fY, shift); in setCubic()
349 float scale = float(1 << (shift + 6)); in setCubic()
386 shift = diff_to_shift(dx, dy) + 1; in setCubic()
389 SkASSERT(shift > 0); in setCubic()
390 if (shift > MAX_COEFF_SHIFT) { in setCubic()
391 shift = MAX_COEFF_SHIFT; in setCubic()
399 int downShift = shift + upShift - 10; in setCubic()
402 upShift = 10 - shift; in setCubic()
406 fCurveCount = SkToS8(SkLeftShift(-1, shift)); in setCubic()
407 fCurveShift = SkToU8(shift); in setCubic()
415 fCDx = B + (C >> shift) + (D >> 2*shift); // biased by shift in setCubic()
416 fCDDx = 2*C + (3*D >> (shift - 1)); // biased by 2*shift in setCubic()
417 fCDDDx = 3*D >> (shift - 1); // biased by 2*shift in setCubic()
424 fCDy = B + (C >> shift) + (D >> 2*shift); // biased by shift in setCubic()
425 fCDDy = 2*C + (3*D >> (shift - 1)); // biased by 2*shift in setCubic()
426 fCDDDy = 3*D >> (shift - 1); // biased by 2*shift in setCubic()