Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1003)

Unified Diff: third_party/WebKit/Source/platform/DragImageTest.cpp

Issue 1855273002: Update new Surface callsites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: software_output_device was indirectly including skia::refptr, switch to sk_sp<> Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « third_party/WebKit/Source/platform/DragImage.cpp ('k') | third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698