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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp

Issue 1855273002: Update new Surface callsites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/graphics/ImageLayerChromiumTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp b/third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp
index 40e1e6cf9094fdfde2c8415968405d5a4be06fb4..1ee34a5212a96e984beb3f5a9db2e62de95ce301 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp
@@ -80,7 +80,7 @@ private:
: Image(0)
, m_size(size)
{
- RefPtr<SkSurface> surface = adoptRef(createSkSurface(size, opaque));
+ sk_sp<SkSurface> surface = createSkSurface(size, opaque);
if (!surface)
return;
@@ -88,9 +88,9 @@ private:
m_image = adoptRef(surface->newImageSnapshot());
}
- static SkSurface* createSkSurface(IntSize size, bool opaque)
+ static sk_sp<SkSurface> createSkSurface(IntSize size, bool opaque)
{
- return SkSurface::NewRaster(SkImageInfo::MakeN32(size.width(), size.height(), opaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType));
+ return SkSurface::MakeRaster(SkImageInfo::MakeN32(size.width(), size.height(), opaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType));
}
IntSize m_size;

Powered by Google App Engine
This is Rietveld 408576698