Index: src/image/SkSurface_Raster.cpp |
diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp |
index d0a65530f071568d18a0e85b95afbb1ad4caa0ba..bcf6da7d1820b1230d94db8071aeeab8c4299dd1 100644 |
--- a/src/image/SkSurface_Raster.cpp |
+++ b/src/image/SkSurface_Raster.cpp |
@@ -128,7 +128,7 @@ SkImage* SkSurface_Raster::onNewImageSnapshot(Budgeted) { |
} |
// 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, &this->props(), kLocked_SharedPixelRefMode, |
+ return SkNewImageFromRasterBitmap(fBitmap, &this->props(), |
fWeOwnThePixels ? kNo_ForceCopyMode : kYes_ForceCopyMode); |
} |