| 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 "SkScan.h" | 8 #include "SkScan.h" |
| 9 #include "SkBlitter.h" | 9 #include "SkBlitter.h" |
| 10 #include "SkMathPriv.h" |
| 10 #include "SkRasterClip.h" | 11 #include "SkRasterClip.h" |
| 11 #include "SkFDot6.h" | 12 #include "SkFDot6.h" |
| 12 #include "SkLineClipper.h" | 13 #include "SkLineClipper.h" |
| 13 | 14 |
| 14 static void horiline(int x, int stopx, SkFixed fy, SkFixed dy, | 15 static void horiline(int x, int stopx, SkFixed fy, SkFixed dy, |
| 15 SkBlitter* blitter) { | 16 SkBlitter* blitter) { |
| 16 SkASSERT(x < stopx); | 17 SkASSERT(x < stopx); |
| 17 | 18 |
| 18 do { | 19 do { |
| 19 blitter->blitH(x, fy >> 16, 1); | 20 blitter->blitH(x, fy >> 16, 1); |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 | 692 |
| 692 SkAAClipBlitterWrapper wrap; | 693 SkAAClipBlitterWrapper wrap; |
| 693 if (!clip.quickContains(r.roundOut().makeOutset(1, 1))) { | 694 if (!clip.quickContains(r.roundOut().makeOutset(1, 1))) { |
| 694 wrap.init(clip, blitter); | 695 wrap.init(clip, blitter); |
| 695 blitter = wrap.getBlitter(); | 696 blitter = wrap.getBlitter(); |
| 696 clipRgn = &wrap.getRgn(); | 697 clipRgn = &wrap.getRgn(); |
| 697 } | 698 } |
| 698 AntiHairLineRgn(pts, count, clipRgn, blitter); | 699 AntiHairLineRgn(pts, count, clipRgn, blitter); |
| 699 } | 700 } |
| 700 } | 701 } |
| OLD | NEW |