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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImagePattern.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/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);

Powered by Google App Engine
This is Rietveld 408576698