aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core/SkPaintPriv.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/SkPaintPriv.cpp b/src/core/SkPaintPriv.cpp
index b37c28655d..dcd8dd6a5a 100644
--- a/src/core/SkPaintPriv.cpp
+++ b/src/core/SkPaintPriv.cpp
@@ -75,7 +75,6 @@ bool SkPaintPriv::ShouldDither(const SkPaint& p, SkColorType dstCT) {
return false;
}
-#ifndef SK_SUPPORT_LEGACY_DITHERING
// We always dither 565 when requested.
if (dstCT == SkColorType::kRGB_565_SkColorType) {
return true;
@@ -84,7 +83,4 @@ bool SkPaintPriv::ShouldDither(const SkPaint& p, SkColorType dstCT) {
// Otherwise, dither is only needed for non-const paints.
return p.getImageFilter() || p.getMaskFilter()
|| !p.getShader() || !as_SB(p.getShader())->isConstant();
-#else
- return true;
-#endif
}