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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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/core/svg/graphics/filters/SVGFEImage.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
index 47751537e73727faa5fb8cd7614d263bd725b268..dae27f5280360db2af388fec7d1cb1a76101af7f 100644
--- a/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/filters/SVGFEImage.cpp
@@ -178,7 +178,7 @@ sk_sp<SkImageFilter> FEImage::createImageFilterForLayoutObject(const LayoutObjec
SVGPaintContext::paintSubtree(filterPicture.context(), &layoutObject);
}
- return SkPictureImageFilter::Make(toSkSp(filterPicture.endRecording()), dstRect);
+ return SkPictureImageFilter::Make(filterPicture.endRecording(), dstRect);
}
sk_sp<SkImageFilter> FEImage::createImageFilter()
@@ -186,7 +186,7 @@ sk_sp<SkImageFilter> FEImage::createImageFilter()
if (auto* layoutObject = referencedLayoutObject())
return createImageFilterForLayoutObject(*layoutObject);
- sk_sp<SkImage> image = m_image ? toSkSp(m_image->imageForCurrentFrame()) : nullptr;
+ sk_sp<SkImage> image = m_image ? m_image->imageForCurrentFrame() : nullptr;
if (!image) {
// "A href reference that is an empty image (zero width or zero height), that fails
// to download, is non-existent, or that cannot be displayed (e.g. because it is

Powered by Google App Engine
This is Rietveld 408576698