Index: third_party/WebKit/Source/platform/DragImageTest.cpp |
diff --git a/third_party/WebKit/Source/platform/DragImageTest.cpp b/third_party/WebKit/Source/platform/DragImageTest.cpp |
index 3257c25ec7fa6b3ada21326e601a022455a42f65..b4db5aa1af02e4d0bde3d1bb91bec7da4d1c3c8a 100644 |
--- a/third_party/WebKit/Source/platform/DragImageTest.cpp |
+++ b/third_party/WebKit/Source/platform/DragImageTest.cpp |
@@ -96,7 +96,7 @@ private: |
explicit TestImage(IntSize size) |
: m_image(nullptr) |
{ |
- RefPtr<SkSurface> surface = adoptRef(createSkSurface(size)); |
+ sk_sp<SkSurface> surface = createSkSurface(size); |
if (!surface) |
return; |
@@ -104,9 +104,9 @@ private: |
m_image = adoptRef(surface->newImageSnapshot()); |
} |
- static SkSurface* createSkSurface(IntSize size) |
+ static sk_sp<SkSurface> createSkSurface(IntSize size) |
{ |
- return SkSurface::NewRaster(SkImageInfo::MakeN32(size.width(), size.height(), kPremul_SkAlphaType)); |
+ return SkSurface::MakeRaster(SkImageInfo::MakeN32(size.width(), size.height(), kPremul_SkAlphaType)); |
} |
RefPtr<SkImage> m_image; |