Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
index e9e1a28f2b7a0f01ffa819be4c9ccd386984d78b..03aed594ebe1ccbb56e744bf9fdb46ce227b05d7 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
@@ -126,7 +126,7 @@ bool canCreateImageBuffer(const IntSize& size) |
PassRefPtr<Image> createTransparentImage(const IntSize& size) |
{ |
ASSERT(canCreateImageBuffer(size)); |
- RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterN32Premul(size.width(), size.height())); |
+ sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(size.width(), size.height()); |
surface->getCanvas()->clear(SK_ColorTRANSPARENT); |
return StaticBitmapImage::create(adoptRef(surface->newImageSnapshot())); |
} |