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 27 matching lines...) Expand all Loading... |
38 fCurrScanline = fCurrScanline->nextScanline(); | 38 fCurrScanline = fCurrScanline->nextScanline(); |
39 } | 39 } |
40 } | 40 } |
41 } | 41 } |
42 | 42 |
43 int computeRunCount() const; | 43 int computeRunCount() const; |
44 void copyToRect(SkIRect*) const; | 44 void copyToRect(SkIRect*) const; |
45 void copyToRgn(SkRegion::RunType runs[]) const; | 45 void copyToRgn(SkRegion::RunType runs[]) const; |
46 | 46 |
47 void blitH(int x, int y, int width) override; | 47 void blitH(int x, int y, int width) override; |
| 48 void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[]
) override { |
| 49 SkDEBUGFAIL("blitAntiH not implemented"); |
| 50 } |
48 | 51 |
49 #ifdef SK_DEBUG | 52 #ifdef SK_DEBUG |
50 void dump() const { | 53 void dump() const { |
51 SkDebugf("SkRgnBuilder: Top = %d\n", fTop); | 54 SkDebugf("SkRgnBuilder: Top = %d\n", fTop); |
52 const Scanline* line = (Scanline*)fStorage; | 55 const Scanline* line = (Scanline*)fStorage; |
53 while (line < fCurrScanline) { | 56 while (line < fCurrScanline) { |
54 SkDebugf("SkRgnBuilder::Scanline: LastY=%d, fXCount=%d", line->fLast
Y, line->fXCount); | 57 SkDebugf("SkRgnBuilder::Scanline: LastY=%d, fXCount=%d", line->fLast
Y, line->fXCount); |
55 for (int i = 0; i < line->fXCount; i++) { | 58 for (int i = 0; i < line->fXCount; i++) { |
56 SkDebugf(" %d", line->firstX()[i]); | 59 SkDebugf(" %d", line->firstX()[i]); |
57 } | 60 } |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 #endif | 531 #endif |
529 | 532 |
530 path->incReserve(count << 1); | 533 path->incReserve(count << 1); |
531 do { | 534 do { |
532 SkASSERT(count > 1); | 535 SkASSERT(count > 1); |
533 count -= extract_path(start, stop, path); | 536 count -= extract_path(start, stop, path); |
534 } while (count > 0); | 537 } while (count > 0); |
535 | 538 |
536 return true; | 539 return true; |
537 } | 540 } |
OLD | NEW |