Lines Matching refs:top

399             int top, bottom;
401 top = SkFixedFloorToInt(fstart - SK_FixedHalf);
405 top = SkFixedFloorToInt(fstart + (istop - istart - 1) * slope - SK_FixedHalf);
408 top -= 1;
411 if (top >= clip->fBottom || bottom <= clip->fTop) {
414 if (clip->fTop <= top && clip->fBottom >= bottom) {
419 if (y0 > y1) { // we want to go top-to-bottom
573 SkFDot6 top = SkMin32(y0, y1);
579 SkFDot6Floor(top) - 1,
622 static void do_scanline(FDot8 L, int top, FDot8 R, U8CPU alpha,
627 blitter->blitV(L >> 8, top, 1, SkAlphaMul(alpha, R - L));
634 blitter->blitV(left, top, 1, SkAlphaMul(alpha, 256 - (L & 0xFF)));
641 call_hline_blitter(blitter, left, top, width, alpha);
644 blitter->blitV(rite, top, 1, SkAlphaMul(alpha, R & 0xFF));
654 int top = T >> 8;
655 if (top == ((B - 1) >> 8)) { // just one scanline high
656 do_scanline(L, top, R, B - T - 1, blitter);
661 do_scanline(L, top, R, 256 - (T & 0xFF), blitter);
662 top += 1;
666 int height = bot - top;
670 blitter->blitV(left, top, height, R - L - 1);
673 blitter->blitV(left, top, height, 256 - (L & 0xFF));
679 blitter->blitRect(left, top, width, height);
682 blitter->blitV(rite, top, height, R & 0xFF);
845 static void inner_scanline(FDot8 L, int top, FDot8 R, U8CPU alpha,
850 blitter->blitV(L >> 8, top, 1, InvAlphaMul(alpha, R - L));
856 blitter->blitV(left, top, 1, InvAlphaMul(alpha, L & 0xFF));
863 call_hline_blitter(blitter, left, top, width, alpha);
867 blitter->blitV(rite, top, 1, InvAlphaMul(alpha, ~R & 0xFF));
875 int top = T >> 8;
876 if (top == ((B - 1) >> 8)) { // just one scanline high
880 inner_scanline(L, top, R, alpha, blitter);
886 inner_scanline(L, top, R, T & 0xFF, blitter);
887 top += 1;
891 int height = bot - top;
894 blitter->blitV(L >> 8, top, height, L & 0xFF);
897 blitter->blitV(R >> 8, top, height, ~R & 0xFF);