aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-30 18:56:08 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-30 18:56:08 +0000
commitbbbe9ed59ee1d3077fa4e6368a4a7294240a5ec6 (patch)
tree3923c84a233c549eebad5169eaec7f219f289f10 /src/core
parent198e054b33051a6cd5f606ccbc8d539cefc5631f (diff)
rm obsolete build-flag SK_IGNORE_HAIRLINE_CLIP_FIX
git-svn-id: http://skia.googlecode.com/svn/trunk@3567 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkScan_Antihair.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/core/SkScan_Antihair.cpp b/src/core/SkScan_Antihair.cpp
index 72221084ed..3a60778e8f 100644
--- a/src/core/SkScan_Antihair.cpp
+++ b/src/core/SkScan_Antihair.cpp
@@ -14,10 +14,6 @@
#include "SkRasterClip.h"
#include "SkFDot6.h"
-// Define this in your Makefile if you want the old behavior, which may draw
-// outside of the clip (but retains the old images if that is important).
-//#define SK_IGNORE_HAIRLINE_CLIP_FIX
-
/* Our attempt to compute the worst case "bounds" for the horizontal and
vertical cases has some numerical bug in it, and we sometimes undervalue
our extends. The bug is that when this happens, we will set the clip to
@@ -300,17 +296,11 @@ static void do_anti_hairline(SkFDot6 x0, SkFDot6 y0, SkFDot6 x1, SkFDot6 y1,
istart = clip->fLeft;
scaleStart = 64;
}
-#ifdef SK_IGNORE_HAIRLINE_CLIP_FIX
- if (istop > clip->fRight) {
- istop = clip->fRight;
- scaleStop = 64;
- }
-#else
if (istop > clip->fRight) {
istop = clip->fRight;
scaleStop = 0; // so we don't draw this last column
}
-#endif
+
SkASSERT(istart <= istop);
if (istart == istop) {
return;
@@ -376,17 +366,11 @@ static void do_anti_hairline(SkFDot6 x0, SkFDot6 y0, SkFDot6 x1, SkFDot6 y1,
istart = clip->fTop;
scaleStart = 64;
}
-#ifdef SK_IGNORE_HAIRLINE_CLIP_FIX
- if (istop > clip->fBottom) {
- istop = clip->fBottom;
- scaleStop = 64; // so we don't draw this last row
- }
-#else
if (istop > clip->fBottom) {
istop = clip->fBottom;
scaleStop = 0; // so we don't draw this last row
}
-#endif
+
SkASSERT(istart <= istop);
if (istart == istop)
return;