aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPaintPriv.cpp
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-06-23 14:53:31 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-23 19:27:37 +0000
commit25ad117ee8cb4c7c6054be64d8003d9865ba43ce (patch)
tree22836691cbdc5a56ddcd6848002e8ee568bf86f4 /src/core/SkPaintPriv.cpp
parent78f1f5a5e74692900e9e23d7f7026a9ca03498ac (diff)
Remove SK_SUPPORT_LEGACY_DITHERING dead code
No longer defined in Chrome. Change-Id: I5677ef39f7815e77fa52ec9aa667ae2a51e0f20b Reviewed-on: https://skia-review.googlesource.com/20692 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src/core/SkPaintPriv.cpp')
-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
}