Index: third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
index 16262f8ec3ae0e2eb4cf06a6e8507031220d5c24..3852f1b6559987a7a575def689f76bb032fb96ac 100644 |
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp |
@@ -141,7 +141,7 @@ static PassRefPtr<StaticBitmapImage> cropImage(Image* image, const IntRect& crop |
return StaticBitmapImage::create(adoptRef(croppedSkImage)); |
} |
- RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterN32Premul(cropRect.width(), cropRect.height())); |
+ sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(cropRect.width(), cropRect.height()); |
if (!surface) |
return nullptr; |
if (srcRect.isEmpty()) |