Index: third_party/WebKit/Source/platform/graphics/ImagePattern.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp |
index 1e0b2b99ea58b3b0d9119941c7ca288f4e0ecf94..287fd124498edcfa51663c1da581a42f60292d0e 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/ImagePattern.cpp |
@@ -57,8 +57,8 @@ sk_sp<SkShader> ImagePattern::createShader() const |
// Create a transparent image 1 pixel wider and/or taller than the |
// original, then copy the orignal into it. |
// FIXME: Is there a better way to pad (not scale) an image in skia? |
- RefPtr<SkSurface> surface = adoptRef(SkSurface::NewRasterN32Premul( |
- m_tileImage->width() + expandW, m_tileImage->height() + expandH)); |
+ sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul( |
+ m_tileImage->width() + expandW, m_tileImage->height() + expandH); |
if (!surface) |
return SkShader::MakeColorShader(SK_ColorTRANSPARENT); |