Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index ff0b8c981995a386c0a8a008e63fa5454361a323..cde9d761722d8362b4f89aeb2243027b5a888d47 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -254,7 +254,7 @@ SkImage* SkImage::NewFromBitmap(const SkBitmap& bm) { |
#endif |
// This will check for immutable (share or copy) |
- return SkNewImageFromRasterBitmap(bm, false, NULL); |
+ return SkNewImageFromRasterBitmap(bm, false, nullptr, kUnlocked_SharedPixelRefMode); |
} |
bool SkImage::asLegacyBitmap(SkBitmap* bitmap, LegacyBitmapMode mode) const { |