Index: src/core/SkBitmapController.cpp |
diff --git a/src/core/SkBitmapController.cpp b/src/core/SkBitmapController.cpp |
index 5cfa5252d6fcfbc2a0b33b21bfc8d12490696207..233e81146f0e308260b6584567ffb0148c3a9d9b 100644 |
--- a/src/core/SkBitmapController.cpp |
+++ b/src/core/SkBitmapController.cpp |
@@ -121,8 +121,10 @@ bool SkDefaultBitmapControllerState::processHQRequest(const SkBitmapProvider& pr |
SkASSERT(fResultBitmap.getPixels()); |
fResultBitmap.setImmutable(); |
- if (SkBitmapCache::AddWH(desc, fResultBitmap)) { |
- provider.notifyAddedToCache(); |
+ if (!provider.isVolatile()) { |
+ if (SkBitmapCache::AddWH(desc, fResultBitmap)) { |
+ provider.notifyAddedToCache(); |
+ } |
} |
} |