Index: skia/ext/skia_utils_mac.mm |
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm |
index 9ebdd7a227c8fc65edcd34b46e04a8892e31b246..57fb7076ba219c4b5ccefb292200c69b5d644638 100644 |
--- a/skia/ext/skia_utils_mac.mm |
+++ b/skia/ext/skia_utils_mac.mm |
@@ -190,7 +190,7 @@ SkBitmap CGImageToSkBitmap(CGImageRef image) { |
int width = CGImageGetWidth(image); |
int height = CGImageGetHeight(image); |
- sk_sp<SkCanvas> canvas(skia::CreatePlatformCanvas( |
+ std::unique_ptr<SkCanvas> canvas(skia::CreatePlatformCanvas( |
nullptr, width, height, false, RETURN_NULL_ON_FAILURE)); |
ScopedPlatformPaint p(canvas.get()); |
CGContextRef context = p.GetNativeDrawingContext(); |