Index: src/effects/SkMagnifierImageFilter.cpp |
diff --git a/src/effects/SkMagnifierImageFilter.cpp b/src/effects/SkMagnifierImageFilter.cpp |
index 2fed24dc7430512f5efde887da7128d178077a7d..4ab3fa17495603d27834b0b663c9bff0a3d30e46 100644 |
--- a/src/effects/SkMagnifierImageFilter.cpp |
+++ b/src/effects/SkMagnifierImageFilter.cpp |
@@ -282,11 +282,11 @@ void SkMagnifierImageFilter::flatten(SkWriteBuffer& buffer) const { |
bool SkMagnifierImageFilter::onFilterImage(Proxy*, const SkBitmap& src, |
const SkMatrix&, SkBitmap* dst, |
SkIPoint* offset) const { |
- SkASSERT(src.config() == SkBitmap::kARGB_8888_Config); |
+ SkASSERT(src.colorType() == kPMColor_SkColorType); |
SkASSERT(fSrcRect.width() < src.width()); |
SkASSERT(fSrcRect.height() < src.height()); |
- if ((src.config() != SkBitmap::kARGB_8888_Config) || |
+ if ((src.colorType() != kPMColor_SkColorType) || |
(fSrcRect.width() >= src.width()) || |
(fSrcRect.height() >= src.height())) { |
return false; |