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

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

Issue 2388213003: Revert of Analytic AntiAlias for Convex Shapes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 2 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/SkScan_AAAPath.cpp ('k') | no next file » | 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 * 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 8
9 #include "SkScanPriv.h" 9 #include "SkScanPriv.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 SkAAClipBlitter aaBlitter; 743 SkAAClipBlitter aaBlitter;
744 744
745 tmp.setRect(clip.getBounds()); 745 tmp.setRect(clip.getBounds());
746 aaBlitter.init(blitter, &clip.aaRgn()); 746 aaBlitter.init(blitter, &clip.aaRgn());
747 SkScan::FillPath(path, tmp, &aaBlitter); 747 SkScan::FillPath(path, tmp, &aaBlitter);
748 } 748 }
749 } 749 }
750 750
751 void SkScan::AntiFillPath(const SkPath& path, const SkRasterClip& clip, 751 void SkScan::AntiFillPath(const SkPath& path, const SkRasterClip& clip,
752 SkBlitter* blitter) { 752 SkBlitter* blitter) {
753 if (GlobalAAConfig::getInstance().fUseAnalyticAA) {
754 SkScan::AAAFillPath(path, clip, blitter);
755 return;
756 }
757
758 if (clip.isEmpty()) { 753 if (clip.isEmpty()) {
759 return; 754 return;
760 } 755 }
761 756
762 if (clip.isBW()) { 757 if (clip.isBW()) {
763 AntiFillPath(path, clip.bwRgn(), blitter); 758 AntiFillPath(path, clip.bwRgn(), blitter);
764 } else { 759 } else {
765 SkRegion tmp; 760 SkRegion tmp;
766 SkAAClipBlitter aaBlitter; 761 SkAAClipBlitter aaBlitter;
767 762
768 tmp.setRect(clip.getBounds()); 763 tmp.setRect(clip.getBounds());
769 aaBlitter.init(blitter, &clip.aaRgn()); 764 aaBlitter.init(blitter, &clip.aaRgn());
770 SkScan::AntiFillPath(path, tmp, &aaBlitter, true); 765 SkScan::AntiFillPath(path, tmp, &aaBlitter, true);
771 } 766 }
772 } 767 }
OLDNEW
« no previous file with comments | « src/core/SkScan_AAAPath.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698