OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkScan.h" | 10 #include "SkScan.h" |
11 #include "SkBlitter.h" | 11 #include "SkBlitter.h" |
12 #include "SkRasterClip.h" | 12 #include "SkRasterClip.h" |
13 | 13 |
| 14 bool SkScan::gWireframe = false; |
| 15 |
14 static inline void blitrect(SkBlitter* blitter, const SkIRect& r) { | 16 static inline void blitrect(SkBlitter* blitter, const SkIRect& r) { |
15 blitter->blitRect(r.fLeft, r.fTop, r.width(), r.height()); | 17 blitter->blitRect(r.fLeft, r.fTop, r.width(), r.height()); |
16 } | 18 } |
17 | 19 |
18 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, | 20 void SkScan::FillIRect(const SkIRect& r, const SkRegion* clip, |
19 SkBlitter* blitter) { | 21 SkBlitter* blitter) { |
20 if (!r.isEmpty()) { | 22 if (!r.isEmpty()) { |
21 if (clip) { | 23 if (clip) { |
22 if (clip->isRect()) { | 24 if (clip->isRect()) { |
23 const SkIRect& clipBounds = clip->getBounds(); | 25 const SkIRect& clipBounds = clip->getBounds(); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 102 } |
101 | 103 |
102 if (clip.isBW()) { | 104 if (clip.isBW()) { |
103 FillRect(r, &clip.bwRgn(), blitter); | 105 FillRect(r, &clip.bwRgn(), blitter); |
104 return; | 106 return; |
105 } | 107 } |
106 | 108 |
107 SkAAClipBlitterWrapper wrapper(clip, blitter); | 109 SkAAClipBlitterWrapper wrapper(clip, blitter); |
108 FillRect(r, &wrapper.getRgn(), wrapper.getBlitter()); | 110 FillRect(r, &wrapper.getRgn(), wrapper.getBlitter()); |
109 } | 111 } |
OLD | NEW |