Index: src/image/SkSurface_Raster.cpp |
diff --git a/src/image/SkSurface_Raster.cpp b/src/image/SkSurface_Raster.cpp |
index 192415341f8150e5500ea82cdb7d4b7374d1a9be..b5844d1f5b8979b221110c6564136c4a61e8f080 100644 |
--- a/src/image/SkSurface_Raster.cpp |
+++ b/src/image/SkSurface_Raster.cpp |
@@ -143,9 +143,9 @@ void SkSurface_Raster::onRestoreBackingMutability() { |
void SkSurface_Raster::onCopyOnWrite(ContentChangeMode mode) { |
// are we sharing pixelrefs with the image? |
- SkAutoTUnref<SkImage> cached(this->refCachedImage(SkBudgeted::kNo, kNo_ForceUnique)); |
+ sk_sp<SkImage> cached(this->refCachedImage(SkBudgeted::kNo, kNo_ForceUnique)); |
SkASSERT(cached); |
- if (SkBitmapImageGetPixelRef(cached) == fBitmap.pixelRef()) { |
+ if (SkBitmapImageGetPixelRef(cached.get()) == fBitmap.pixelRef()) { |
SkASSERT(fWeOwnThePixels); |
if (kDiscard_ContentChangeMode == mode) { |
fBitmap.allocPixels(); |