Home | History | Annotate | Download | only in core

Lines Matching defs:SHIFT

16 #define SHIFT   2
17 #define SCALE (1 << SHIFT)
93 fSuperLeft = SkLeftShift(left, SHIFT);
97 fCurrY = SkLeftShift(fTop, SHIFT) - 1;
186 aa <<= 8 - 2*SHIFT;
194 int alpha = (256 >> SHIFT) * aa;
202 int iy = y >> SHIFT;
233 int n = (stop >> SHIFT) - (start >> SHIFT) - 1;
247 fOffsetX = fRuns.add(x >> SHIFT, coverage_to_partial_alpha(fb),
249 (1 << (8 - SHIFT)) - (((y & MASK) + 1) >> SHIFT),
253 fRuns.assertValid(y & MASK, (1 << (8 - SHIFT)));
312 int start_y = y >> SHIFT;
313 int stop_y = (y + height) >> SHIFT;
316 y += count << SHIFT;
317 height -= count << SHIFT;
333 int ileft = x >> SHIFT;
338 int irite = (x + width) >> SHIFT;
527 int iy = (y >> SHIFT);
541 int ix = x >> SHIFT;
546 x -= SkLeftShift(fMask.fBounds.fLeft, SHIFT);
554 uint8_t* row = fMask.fImage + iy * fMask.fRowBytes + (x >> SHIFT);
562 int n = (stop >> SHIFT) - (start >> SHIFT) - 1;
575 (1 << (8 - SHIFT)) - (((y & MASK) + 1) >> SHIFT));
591 static int overflows_short_shift(int value, int shift) {
592 const int s = 16 + shift;
598 when left-shifted by shift?
600 static int rect_overflows_short_shift(SkIRect rect, int shift) {
601 SkASSERT(!overflows_short_shift(8191, SHIFT));
602 SkASSERT(overflows_short_shift(8192, SHIFT));
608 return overflows_short_shift(rect.fLeft, SHIFT) |
609 overflows_short_shift(rect.fRight, SHIFT) |
610 overflows_short_shift(rect.fTop, SHIFT) |
611 overflows_short_shift(rect.fBottom, SHIFT);
633 if (!safeRoundOut(path.getBounds(), &ir, SK_MaxS32 >> SHIFT)) {
648 // will overflow 32767 when << by SHIFT, we can't supersample,
660 if (rect_overflows_short_shift(clippedIR, SHIFT)) {
707 superRect.set(SkLeftShift(clipRect->fLeft, SHIFT),
708 SkLeftShift(clipRect->fTop, SHIFT),
709 SkLeftShift(clipRect->fRight, SHIFT),
710 SkLeftShift(clipRect->fBottom, SHIFT));
721 sk_fill_path(path, clipRgn->getBounds(), &superBlit, ir.fTop, ir.fBottom, SHIFT,
725 sk_fill_path(path, clipRgn->getBounds(), &superBlit, ir.fTop, ir.fBottom, SHIFT,