| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkRegionPriv.h" | 8 #include "SkRegionPriv.h" |
| 9 #include "SkBlitter.h" | 9 #include "SkBlitter.h" |
| 10 #include "SkScan.h" | 10 #include "SkScan.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 if (!this->collapsWithPrev()) { // flush the last line | 36 if (!this->collapsWithPrev()) { // flush the last line |
| 37 fCurrScanline = fCurrScanline->nextScanline(); | 37 fCurrScanline = fCurrScanline->nextScanline(); |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 | 41 |
| 42 int computeRunCount() const; | 42 int computeRunCount() const; |
| 43 void copyToRect(SkIRect*) const; | 43 void copyToRect(SkIRect*) const; |
| 44 void copyToRgn(SkRegion::RunType runs[]) const; | 44 void copyToRgn(SkRegion::RunType runs[]) const; |
| 45 | 45 |
| 46 void blitH(int x, int y, int width) SK_OVERRIDE; | 46 void blitH(int x, int y, int width) override; |
| 47 | 47 |
| 48 #ifdef SK_DEBUG | 48 #ifdef SK_DEBUG |
| 49 void dump() const { | 49 void dump() const { |
| 50 SkDebugf("SkRgnBuilder: Top = %d\n", fTop); | 50 SkDebugf("SkRgnBuilder: Top = %d\n", fTop); |
| 51 const Scanline* line = (Scanline*)fStorage; | 51 const Scanline* line = (Scanline*)fStorage; |
| 52 while (line < fCurrScanline) { | 52 while (line < fCurrScanline) { |
| 53 SkDebugf("SkRgnBuilder::Scanline: LastY=%d, fXCount=%d", line->fLast
Y, line->fXCount); | 53 SkDebugf("SkRgnBuilder::Scanline: LastY=%d, fXCount=%d", line->fLast
Y, line->fXCount); |
| 54 for (int i = 0; i < line->fXCount; i++) { | 54 for (int i = 0; i < line->fXCount; i++) { |
| 55 SkDebugf(" %d", line->firstX()[i]); | 55 SkDebugf(" %d", line->firstX()[i]); |
| 56 } | 56 } |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 #endif | 527 #endif |
| 528 | 528 |
| 529 path->incReserve(count << 1); | 529 path->incReserve(count << 1); |
| 530 do { | 530 do { |
| 531 SkASSERT(count > 1); | 531 SkASSERT(count > 1); |
| 532 count -= extract_path(start, stop, path); | 532 count -= extract_path(start, stop, path); |
| 533 } while (count > 0); | 533 } while (count > 0); |
| 534 | 534 |
| 535 return true; | 535 return true; |
| 536 } | 536 } |
| OLD | NEW |