Home | History | Annotate | Download | only in core

Lines Matching refs:SHIFT

17 #define SHIFT   2
18 #define SCALE (1 << SHIFT)
90 fSuperLeft = left << SHIFT;
98 fCurrY = (ir.fTop << SHIFT) - 1;
163 aa <<= 8 - 2*SHIFT;
165 aa -= aa >> (8 - SHIFT - 1);
174 int alpha = (256 >> SHIFT) * aa;
182 int iy = y >> SHIFT;
213 int n = (stop >> SHIFT) - (start >> SHIFT) - 1;
227 fOffsetX = fRuns.add(x >> SHIFT, coverage_to_partial_alpha(fb),
229 (1 << (8 - SHIFT)) - (((y & MASK) + 1) >> SHIFT),
233 fRuns.assertValid(y & MASK, (1 << (8 - SHIFT)));
292 int start_y = y >> SHIFT;
293 int stop_y = (y + height) >> SHIFT;
296 y += count << SHIFT;
297 height -= count << SHIFT;
313 int ileft = x >> SHIFT;
318 int irite = (x + width) >> SHIFT;
504 int iy = (y >> SHIFT);
518 int ix = x >> SHIFT;
523 x -= (fMask.fBounds.fLeft << SHIFT);
531 uint8_t* row = fMask.fImage + iy * fMask.fRowBytes + (x >> SHIFT);
539 int n = (stop >> SHIFT) - (start >> SHIFT) - 1;
552 (1 << (8 - SHIFT)) - (((y & MASK) + 1) >> SHIFT));
568 static int overflows_short_shift(int value, int shift) {
569 const int s = 16 + shift;
575 when left-shifted by shift?
577 static int rect_overflows_short_shift(SkIRect rect, int shift) {
578 SkASSERT(!overflows_short_shift(8191, SHIFT));
579 SkASSERT(overflows_short_shift(8192, SHIFT));
585 return overflows_short_shift(rect.fLeft, SHIFT) |
586 overflows_short_shift(rect.fRight, SHIFT) |
587 overflows_short_shift(rect.fTop, SHIFT) |
588 overflows_short_shift(rect.fBottom, SHIFT);
609 if (!safeRoundOut(path.getBounds(), &ir, SK_MaxS32 >> SHIFT)) {
624 // will overflow 32767 when << by SHIFT, we can't supersample,
636 if (rect_overflows_short_shift(clippedIR, SHIFT)) {
680 superRect.set( clipRect->fLeft << SHIFT, clipRect->fTop << SHIFT,
681 clipRect->fRight << SHIFT, clipRect->fBottom << SHIFT);
692 sk_fill_path(path, superClipRect, &superBlit, ir.fTop, ir.fBottom, SHIFT, *clipRgn);
695 sk_fill_path(path, superClipRect, &superBlit, ir.fTop, ir.fBottom, SHIFT, *clipRgn);