Index: src/image/SkImagePriv.h |
diff --git a/src/image/SkImagePriv.h b/src/image/SkImagePriv.h |
index acd0beb475bdd679b3257f8d5dcfd350d7f93e38..a625472eaa03ea3dfabf8ba1606313fc55db6ba6 100644 |
--- a/src/image/SkImagePriv.h |
+++ b/src/image/SkImagePriv.h |
@@ -12,9 +12,9 @@ |
#include "SkSurface.h" |
// Call this if you explicitly want to use/share this pixelRef in the image |
-extern SkImage* SkNewImageFromPixelRef(const SkImageInfo&, SkPixelRef*, |
- const SkIPoint& pixelRefOrigin, |
- size_t rowBytes); |
+extern sk_sp<SkImage> SkMakeImageFromPixelRef(const SkImageInfo&, SkPixelRef*, |
+ const SkIPoint& pixelRefOrigin, |
+ size_t rowBytes); |
/** |
* Examines the bitmap to decide if it can share the existing pixelRef, or |
@@ -38,7 +38,8 @@ enum ForceCopyMode { |
kNo_ForceCopyMode, |
kYes_ForceCopyMode, // must copy the pixels even if the bitmap is immutable |
}; |
-extern SkImage* SkNewImageFromRasterBitmap(const SkBitmap&, ForceCopyMode = kNo_ForceCopyMode); |
+extern sk_sp<SkImage> SkMakeImageFromRasterBitmap(const SkBitmap&, |
+ ForceCopyMode = kNo_ForceCopyMode); |
// Given an image created from SkNewImageFromBitmap, return its pixelref. This |
// may be called to see if the surface and the image share the same pixelref, |