OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 The Android Open Source Project | 2 * Copyright 2011 The Android Open Source Project |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #include "SkScan.h" | 9 #include "SkScan.h" |
11 #include "SkBlitter.h" | 10 #include "SkBlitter.h" |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 | 997 |
999 void SkScan::AntiFrameRect(const SkRect& r, const SkPoint& strokeSize, | 998 void SkScan::AntiFrameRect(const SkRect& r, const SkPoint& strokeSize, |
1000 const SkRasterClip& clip, SkBlitter* blitter) { | 999 const SkRasterClip& clip, SkBlitter* blitter) { |
1001 if (clip.isBW()) { | 1000 if (clip.isBW()) { |
1002 AntiFrameRect(r, strokeSize, &clip.bwRgn(), blitter); | 1001 AntiFrameRect(r, strokeSize, &clip.bwRgn(), blitter); |
1003 } else { | 1002 } else { |
1004 SkAAClipBlitterWrapper wrap(clip, blitter); | 1003 SkAAClipBlitterWrapper wrap(clip, blitter); |
1005 AntiFrameRect(r, strokeSize, &wrap.getRgn(), wrap.getBlitter()); | 1004 AntiFrameRect(r, strokeSize, &wrap.getRgn(), wrap.getBlitter()); |
1006 } | 1005 } |
1007 } | 1006 } |
OLD | NEW |