Index: src/image/SkSurface_Raster.cpp |
diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp |
index d07e94998f6aa3606daaa9425ddba800070781c1..192415341f8150e5500ea82cdb7d4b7374d1a9be 100644 |
--- a/src/image/SkSurface_Raster.cpp |
+++ b/src/image/SkSurface_Raster.cpp |
@@ -131,7 +131,7 @@ SkImage* SkSurface_Raster::onNewImageSnapshot(SkBudgeted, ForceCopyMode forceCop |
// Our pixels are in memory, so read access on the snapshot SkImage could be cheap. |
// Lock the shared pixel ref to ensure peekPixels() is usable. |
- return SkNewImageFromRasterBitmap(fBitmap, forceCopyMode); |
+ return SkMakeImageFromRasterBitmap(fBitmap, forceCopyMode).release(); |
} |
void SkSurface_Raster::onRestoreBackingMutability() { |