• Home
  • Raw
  • Download

Lines Matching full:runs

30 static int compute_intervalcount(const SkRegion::RunType runs[]) {  in compute_intervalcount()  argument
31 const SkRegion::RunType* curr = runs; in compute_intervalcount()
37 return SkToInt((curr - runs) >> 1); in compute_intervalcount()
131 * Given a scanline (including its Bottom value at runs[0]), return the next
132 * scanline. Asserts that there is one (i.e. runs[0] < Sentinel)
134 static SkRegion::RunType* SkipEntireScanline(const SkRegion::RunType runs[]) { in SkipEntireScanline()
136 SkASSERT(runs[0] < SkRegion::kRunTypeSentinel); in SkipEntireScanline()
138 const int intervals = runs[1]; in SkipEntireScanline()
139 SkASSERT(runs[2 + intervals * 2] == SkRegion::kRunTypeSentinel); in SkipEntireScanline()
142 int n = compute_intervalcount(&runs[2]); in SkipEntireScanline()
148 runs += 1 + 1 + intervals * 2 + 1; in SkipEntireScanline()
149 return const_cast<SkRegion::RunType*>(runs); in SkipEntireScanline()
161 const RunType* runs = this->readonly_runs(); in findScanline() local
164 SkASSERT(y >= runs[0]); in findScanline()
166 runs += 1; // skip top-Y in findScanline()
168 int bottom = runs[0]; in findScanline()
175 runs = SkipEntireScanline(runs); in findScanline()
177 return const_cast<SkRegion::RunType*>(runs); in findScanline()
180 // Copy src runs into us, computing interval counts and bounds along the way
182 RunType* runs = this->writable_runs(); in computeRunBounds() local
183 bounds->fTop = *runs++; in computeRunBounds()
192 bot = *runs++; in computeRunBounds()
196 const int intervals = *runs++; in computeRunBounds()
203 int n = compute_intervalcount(runs); in computeRunBounds()
207 RunType L = runs[0]; in computeRunBounds()
213 runs += intervals * 2; in computeRunBounds()
214 RunType R = runs[-1]; in computeRunBounds()
222 SkASSERT(SkRegion::kRunTypeSentinel == *runs); in computeRunBounds()
223 runs += 1; // skip x-sentinel in computeRunBounds()
226 } while (SkRegion::kRunTypeSentinel > *runs); in computeRunBounds()
230 int runCount = SkToInt(runs - this->writable_runs() + 1); in computeRunBounds()