Home | History | Annotate | Download | only in core

Lines Matching refs:RunType

33 static SkRegion::RunType* skip_intervals(const SkRegion::RunType runs[]) {
45 return const_cast<SkRegion::RunType*>(runs);
48 bool SkRegion::RunsAreARect(const SkRegion::RunType runs[], int count,
232 bool SkRegion::setRuns(RunType runs[], int count) {
245 RunType* stop = runs + count;
292 memcpy(fRunHead->writable_runs(), runs, count * sizeof(RunType));
301 RunType runs[kRectRegionRuns]) {
322 const RunType* runs = fRunHead->findScanline(y);
345 static SkRegion::RunType scanline_bottom(const SkRegion::RunType runs[]) {
349 static const SkRegion::RunType* scanline_next(const SkRegion::RunType runs[]) {
354 static bool scanline_contains(const SkRegion::RunType runs[],
355 SkRegion::RunType L, SkRegion::RunType R) {
380 const RunType* scanline = fRunHead->findScanline(r.fTop);
414 const SkRegion::RunType* SkRegion::getRuns(RunType tmpStorage[],
417 const RunType* runs = tmpStorage;
434 static bool scanline_intersects(const SkRegion::RunType runs[],
435 SkRegion::RunType L, SkRegion::RunType R) {
465 const RunType* scanline = fRunHead->findScanline(sect.fTop);
530 ah->fRunCount * sizeof(SkRegion::RunType));
556 const RunType* sruns = fRunHead->readonly_runs();
557 RunType* druns = dst->fRunHead->writable_runs();
559 *druns++ = (SkRegion::RunType)(*sruns++ + dy); // top
565 *druns++ = (SkRegion::RunType)(bottom + dy); // bottom;
572 *druns++ = (SkRegion::RunType)(x + dx);
573 *druns++ = (SkRegion::RunType)(*sruns++ + dx);
617 const SkRegion::RunType* fA_runs;
618 const SkRegion::RunType* fB_runs;
622 void init(const SkRegion::RunType a_runs[],
623 const SkRegion::RunType b_runs[]) {
707 static SkRegion::RunType* operate_on_span(const SkRegion::RunType a_runs[],
708 const SkRegion::RunType b_runs[],
709 SkRegion::RunType dst[],
726 *dst++ = (SkRegion::RunType)(left);
727 *dst++ = (SkRegion::RunType)(rite);
731 dst[-1] = (SkRegion::RunType)(rite);
756 RgnOper(int top, SkRegion::RunType dst[], SkRegion::Op op) {
767 fTop = (SkRegion::RunType)(top); // just a first guess, we might update this
773 void addSpan(int bottom, const SkRegion::RunType a_runs[],
774 const SkRegion::RunType b_runs[]) {
776 SkRegion::RunType* start = fPrevDst + fPrevLen + 2;
778 SkRegion::RunType* stop = operate_on_span(a_runs, b_runs, start, fMin, fMax);
785 (len - 1) * sizeof(SkRegion::RunType)))) {
787 fPrevDst[-2] = (SkRegion::RunType)(bottom);
790 fTop = (SkRegion::RunType)(bottom); // just update our bottom
792 start[-2] = (SkRegion::RunType)(bottom);
811 SkRegion::RunType* fStartDst;
812 SkRegion::RunType* fPrevDst;
814 SkRegion::RunType fTop;
820 static int operate(const SkRegion::RunType a_runs[],
821 const SkRegion::RunType b_runs[],
822 SkRegion::RunType dst[],
825 const SkRegion::RunType gEmptyScanline[] = {
836 const SkRegion::RunType* const gSentinel = &gEmptyScanline[2];
860 const SkRegion::RunType* run0 = gSentinel;
861 const SkRegion::RunType* run1 = gSentinel;
963 // convert back to number of RunType values
1062 RunType tmpA[kRectRegionRuns];
1063 RunType tmpB[kRectRegionRuns];
1066 const RunType* a_runs = rgna->getRuns(tmpA, &a_intervals);
1067 const RunType* b_runs = rgnb->getRuns(tmpB, &b_intervals);
1070 SkAutoSTMalloc<256, RunType> array(dstCount);
1104 size += fRunHead->fRunCount * sizeof(RunType);
1124 fRunHead->fRunCount * sizeof(RunType));
1142 buffer.read(tmp.fRunHead->writable_runs(), count * sizeof(RunType));
1166 static const SkRegion::RunType* skip_intervals_slow(const SkRegion::RunType runs[]) {
1171 SkRegion::RunType prevR = -SkRegion::kRunTypeSentinel;
1183 static void compute_bounds(const SkRegion::RunType runs[],
1207 const SkRegion::RunType* prev = runs;
1242 const RunType* run = fRunHead->readonly_runs();
1266 const RunType* runs = fRunHead->readonly_runs();
1318 const RunType* runs = fRuns;
1408 const SkRegion::RunType* runs = rgn.fRunHead->findScanline(y);
1447 const SkRegion::RunType* runs = fRuns;
1470 bool SkRegion::debugSetRuns(const RunType runs[], int count) {
1474 SkAutoTArray<RunType> storage(count);
1475 memcpy(storage.get(), runs, count * sizeof(RunType));