diff options
author | reed <reed@google.com> | 2015-04-20 05:18:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-20 05:18:01 -0700 |
commit | a8ec4805db3a3cfd34926b89d6963700fb0ff0c1 (patch) | |
tree | 798019efe7410c39c38f8c336e7a5580eb068d70 /src/core/SkScan_Hairline.cpp | |
parent | d13444acf2d6cdc13f9916309cfd3cfa314b6725 (diff) |
remove dead code from SK_SUPPORT_LEGACY_BLITANTIH2V2
no image changes expected in skia or chrome/blink
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1050953003
Diffstat (limited to 'src/core/SkScan_Hairline.cpp')
-rw-r--r-- | src/core/SkScan_Hairline.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/core/SkScan_Hairline.cpp b/src/core/SkScan_Hairline.cpp index 2ec051f8ab..4ed5ec254c 100644 --- a/src/core/SkScan_Hairline.cpp +++ b/src/core/SkScan_Hairline.cpp @@ -218,18 +218,6 @@ static void hairquad(const SkPoint pts[3], const SkRegion* clip, SkBlitter* blitter, int level, SkScan::HairRgnProc lineproc) { SkASSERT(level <= kMaxQuadSubdivideLevel); -#ifdef SK_SUPPORT_LEGACY_BLITANTIH2V2 - if (level > 0) { - SkPoint tmp[5]; - - SkChopQuadAtHalf(pts, tmp); - hairquad(tmp, clip, blitter, level - 1, lineproc); - hairquad(&tmp[2], clip, blitter, level - 1, lineproc); - } else { - SkPoint tmp[] = { pts[0], pts[2] }; - lineproc(tmp, 2, clip, blitter); - } -#else SkPoint coeff[3]; SkQuadToCoeff(pts, coeff); @@ -250,10 +238,8 @@ static void hairquad(const SkPoint pts[3], const SkRegion* clip, } tmp[lines] = pts[2]; lineproc(tmp, lines + 1, clip, blitter); -#endif } -#ifndef SK_SUPPORT_LEGACY_BLITANTIH2V2 static inline Sk2s abs(const Sk2s& value) { return Sk2s::Max(value, -value); } @@ -331,22 +317,9 @@ static void hair_cubic(const SkPoint pts[4], const SkRegion* clip, SkBlitter* bl tmp[lines] = pts[3]; lineproc(tmp, lines + 1, clip, blitter); } -#endif static inline void haircubic(const SkPoint pts[4], const SkRegion* clip, SkBlitter* blitter, int level, SkScan::HairRgnProc lineproc) { -#ifdef SK_SUPPORT_LEGACY_BLITANTIH2V2 - if (level > 0) { - SkPoint tmp[7]; - - SkChopCubicAt(pts, tmp, SK_Scalar1/2); - haircubic(tmp, clip, blitter, level - 1, lineproc); - haircubic(&tmp[3], clip, blitter, level - 1, lineproc); - } else { - SkPoint tmp[] = { pts[0], pts[3] }; - lineproc(tmp, 2, clip, blitter); - } -#else if (quick_cubic_niceness_check(pts)) { hair_cubic(pts, clip, blitter, lineproc); } else { @@ -358,7 +331,6 @@ static inline void haircubic(const SkPoint pts[4], const SkRegion* clip, hair_cubic(&tmp[i * 3], clip, blitter, lineproc); } } -#endif } static int compute_quad_level(const SkPoint pts[3]) { |