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 virtual void blitH(int x, int y, int width); | 46 virtual void blitH(int x, int y, int width) SK_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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 #endif | 518 #endif |
519 | 519 |
520 path->incReserve(count << 1); | 520 path->incReserve(count << 1); |
521 do { | 521 do { |
522 SkASSERT(count > 1); | 522 SkASSERT(count > 1); |
523 count -= extract_path(start, stop, path); | 523 count -= extract_path(start, stop, path); |
524 } while (count > 0); | 524 } while (count > 0); |
525 | 525 |
526 return true; | 526 return true; |
527 } | 527 } |
OLD | NEW |