Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index 15c5ea6bd82f38c670e2592272c097e5dff1f123..2d434aee194f675efdb7373e0ad4461e8ba930a1 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -309,8 +309,7 @@ sk_sp<SkImage> SkImage::MakeFromBitmap(const SkBitmap& bm) { |
} |
#endif |
- // This will check for immutable (share or copy) |
- return SkMakeImageFromRasterBitmap(bm); |
+ return SkMakeImageFromRasterBitmap(bm, kIfMutable_SkCopyPixelsMode); |
} |
bool SkImage::asLegacyBitmap(SkBitmap* bitmap, LegacyBitmapMode mode) const { |