diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkBitmap.h | 7 |
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. */ |