aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-07-03 13:36:17 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-03 19:07:25 +0000
commita920d367bf9b3724f66173e4aa702ca09f680dea (patch)
tree6f1501e4c0c1c9568b99428d201adb19e281390e /include
parent0401c0d1d3ad9db5d3eecb3096bd569dfe5c2498 (diff)
remove unneeded code for index8 imagse
Bug: skia:6828 Change-Id: I039d6bc35a1ed93ce747247f32fe4e9d5b09da0c Reviewed-on: https://skia-review.googlesource.com/21400 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkBitmap.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 00a68dad4f..7a0130eb7a 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -121,12 +121,7 @@ public:
/** Return true iff drawing this bitmap has no effect.
*/
bool drawsNothing() const {
-#ifndef SK_SUPPORT_LEGACY_INDEX_8
- if (this->colorType() == kIndex_8_SkColorType) {
- return true;
- }
-#endif
- return this->empty() || this->isNull();
+ return this->colorType() == kIndex_8_SkColorType || this->empty() || this->isNull();
}
/** Return the number of bytes between subsequent rows of the bitmap. */