Index: src/core/SkResourceCache.cpp |
diff --git a/src/core/SkResourceCache.cpp b/src/core/SkResourceCache.cpp |
index 240d1977e53968d417de449d84ff42c8e34f405e..22718b2a4ef636afb1c3a24671b0ced2d9e3cedd 100644 |
--- a/src/core/SkResourceCache.cpp |
+++ b/src/core/SkResourceCache.cpp |
@@ -172,7 +172,7 @@ bool SkResourceCacheDiscardableAllocator::allocPixelRef(SkBitmap* bitmap, SkColo |
} |
// can we relax this? |
- if (kN32_SkColorType != bitmap->colorType()) { |
+ if (kN32_SkColorType != bitmap->colorType() && kRGB_565_SkColorType != bitmap->colorType()) { |
return false; |
} |