Index: src/image/SkImage_Raster.cpp |
diff --git a/src/image/SkImage_Raster.cpp b/src/image/SkImage_Raster.cpp |
index 7f2f5c07ef71ed0e14348c72e4c71bb0d46b7fe9..764d5eb2906cc9f64e2ff4cb2baac4c5ea61cec6 100644 |
--- a/src/image/SkImage_Raster.cpp |
+++ b/src/image/SkImage_Raster.cpp |
@@ -183,7 +183,7 @@ sk_sp<SkImage> SkImage_Raster::onMakeSubset(const SkIRect& subset) const { |
surface->getCanvas()->clear(0); |
surface->getCanvas()->drawImage(this, SkIntToScalar(-subset.x()), SkIntToScalar(-subset.y()), |
nullptr); |
- return sk_sp<SkImage>(surface->newImageSnapshot()); |
+ return surface->makeImageSnapshot(); |
} |
/////////////////////////////////////////////////////////////////////////////// |