Lines Matching full:runs
43 const int16_t runs[]) {
68 int runSize = bounds.width() + 1; // +1 so we can set runs[bounds.width()] = 0 in blitFatAntiRect()
70 int16_t* runs = reinterpret_cast<int16_t*>(storage); in blitFatAntiRect() local
71 SkAlpha* alphas = reinterpret_cast<SkAlpha*>(runs + runSize); in blitFatAntiRect()
73 runs[0] = 1; in blitFatAntiRect()
74 runs[1] = bounds.width() - 2; in blitFatAntiRect()
75 runs[bounds.width() - 1] = 1; in blitFatAntiRect()
76 runs[bounds.width()] = 0; in blitFatAntiRect()
90 this->blitAntiH(bounds.fLeft, bounds.fTop, alphas, runs); in blitFatAntiRect()
101 this->blitAntiH(bounds.fLeft, bounds.fBottom - 1, alphas, runs); in blitFatAntiRect()
107 int runSize = clip.width() + 1; // +1 so we can set runs[clip.width()] = 0 in blitCoverageDeltas()
109 int16_t* runs = reinterpret_cast<int16_t*>(storage); in blitCoverageDeltas() local
110 SkAlpha* alphas = reinterpret_cast<SkAlpha*>(runs + runSize); in blitCoverageDeltas()
111 runs[clip.width()] = 0; // we must set the last run to 0 so blitAntiH can stop there in blitCoverageDeltas()
202 runs[lastX - clip.fLeft] = delta.fX - lastX; // set the run length in blitCoverageDeltas()
212 runs[lastX - clip.fLeft] = clip.fRight - lastX; in blitCoverageDeltas()
214 this->blitAntiH(clip.fLeft, y, alphas, runs); // finally blit the current row in blitCoverageDeltas()
222 int16_t runs[2]; in blitV() local
223 runs[0] = 1; in blitV()
224 runs[1] = 0; in blitV()
227 this->blitAntiH(x, y++, &alpha, runs); in blitV()
365 int16_t* runs = runStorage.get(); in blitMask() local
368 sk_memset16((uint16_t*)runs, 1, width); in blitMask()
369 runs[width] = 0; in blitMask()
374 this->blitAntiH(clip.fLeft, y, aa, runs); in blitMask()
418 const int16_t runs[]) {} in blitAntiH() argument
434 static int compute_anti_width(const int16_t runs[]) { in compute_anti_width() argument
438 int count = runs[0]; in compute_anti_width()
445 runs += count; in compute_anti_width()
481 const int16_t runs[]) { in blitAntiH() argument
487 int x1 = left + compute_anti_width(runs); in blitAntiH()
496 SkAlphaRuns::BreakAt((int16_t*)runs, (uint8_t*)aa, dx); in blitAntiH()
497 runs += dx; in blitAntiH()
502 SkASSERT(x0 < x1 && runs[x1 - x0] == 0); in blitAntiH()
505 SkAlphaRuns::BreakAt((int16_t*)runs, (uint8_t*)aa, x1 - x0); in blitAntiH()
506 ((int16_t*)runs)[x1 - x0] = 0; in blitAntiH()
509 SkASSERT(x0 < x1 && runs[x1 - x0] == 0); in blitAntiH()
510 SkASSERT(compute_anti_width(runs) == x1 - x0); in blitAntiH()
512 fBlitter->blitAntiH(x0, y, aa, runs); in blitAntiH()
604 const int16_t runs[]) { in blitAntiH() argument
605 int width = compute_anti_width(runs); in blitAntiH()
616 SkAlphaRuns::Break((int16_t*)runs, (uint8_t*)aa, left - x, right - left); in blitAntiH()
621 ((uint8_t*)aa)[index] = 0; // skip runs after right in blitAntiH()
622 ((int16_t*)runs)[index] = SkToS16(left - prevRite); in blitAntiH()
629 ((int16_t*)runs)[prevRite - x] = 0; in blitAntiH()
632 int skip = runs[0]; in blitAntiH()
635 runs += skip; in blitAntiH()
638 fBlitter->blitAntiH(x, y, aa, runs); in blitAntiH()
929 void SkRectClipCheckBlitter::blitAntiH(int x, int y, const SkAlpha aa[], const int16_t runs[]) { in blitAntiH() argument
930 const int16_t* iter = runs; in blitAntiH()
933 int width = iter - runs; in blitAntiH()
935 fBlitter->blitAntiH(x, y, aa, runs); in blitAntiH()