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 "SkScanPriv.h" | 10 #include "SkScanPriv.h" |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 superClipRect = &superRect; | 708 superClipRect = &superRect; |
709 } | 709 } |
710 | 710 |
711 SkASSERT(SkIntToScalar(ir.fTop) <= path.getBounds().fTop); | 711 SkASSERT(SkIntToScalar(ir.fTop) <= path.getBounds().fTop); |
712 | 712 |
713 // MaskSuperBlitter can't handle drawing outside of ir, so we can't use it | 713 // MaskSuperBlitter can't handle drawing outside of ir, so we can't use it |
714 // if we're an inverse filltype | 714 // if we're an inverse filltype |
715 if (!isInverse && MaskSuperBlitter::CanHandleRect(ir) && !forceRLE) { | 715 if (!isInverse && MaskSuperBlitter::CanHandleRect(ir) && !forceRLE) { |
716 MaskSuperBlitter superBlit(blitter, ir, *clipRgn, isInverse); | 716 MaskSuperBlitter superBlit(blitter, ir, *clipRgn, isInverse); |
717 SkASSERT(SkIntToScalar(ir.fTop) <= path.getBounds().fTop); | 717 SkASSERT(SkIntToScalar(ir.fTop) <= path.getBounds().fTop); |
718 sk_fill_path(path, superClipRect, &superBlit, ir.fTop, ir.fBottom, SHIFT
, *clipRgn); | 718 sk_fill_path(path, superClipRect, &superBlit, NULL, ir.fTop, ir.fBottom,
SHIFT, *clipRgn); |
719 } else { | 719 } else { |
720 SuperBlitter superBlit(blitter, ir, *clipRgn, isInverse); | 720 SuperBlitter superBlit(blitter, ir, *clipRgn, isInverse); |
721 sk_fill_path(path, superClipRect, &superBlit, ir.fTop, ir.fBottom, SHIFT
, *clipRgn); | 721 sk_fill_path(path, superClipRect, &superBlit, NULL, ir.fTop, ir.fBottom,
SHIFT, *clipRgn); |
722 } | 722 } |
723 | 723 |
724 if (isInverse) { | 724 if (isInverse) { |
725 sk_blit_below(blitter, ir, *clipRgn); | 725 sk_blit_below(blitter, ir, *clipRgn); |
726 } | 726 } |
727 } | 727 } |
728 | 728 |
729 /////////////////////////////////////////////////////////////////////////////// | 729 /////////////////////////////////////////////////////////////////////////////// |
730 | 730 |
731 #include "SkRasterClip.h" | 731 #include "SkRasterClip.h" |
(...skipping 26 matching lines...) Expand all Loading... |
758 AntiFillPath(path, clip.bwRgn(), blitter); | 758 AntiFillPath(path, clip.bwRgn(), blitter); |
759 } else { | 759 } else { |
760 SkRegion tmp; | 760 SkRegion tmp; |
761 SkAAClipBlitter aaBlitter; | 761 SkAAClipBlitter aaBlitter; |
762 | 762 |
763 tmp.setRect(clip.getBounds()); | 763 tmp.setRect(clip.getBounds()); |
764 aaBlitter.init(blitter, &clip.aaRgn()); | 764 aaBlitter.init(blitter, &clip.aaRgn()); |
765 SkScan::AntiFillPath(path, tmp, &aaBlitter, true); | 765 SkScan::AntiFillPath(path, tmp, &aaBlitter, true); |
766 } | 766 } |
767 } | 767 } |
OLD | NEW |