Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: src/core/SkScan_AntiPath.cpp

Issue 692583002: WIP: GPU-accelerated trapezoidal path renderer. Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrTrapezoidalPathRenderer -> GrAAConcavePathRenderer; swap MSAA support for a coverage ramp. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkScanPriv.h ('k') | src/core/SkScan_Path.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/core/SkScanPriv.h ('k') | src/core/SkScan_Path.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698