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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Self-review. Created 4 years, 4 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/layout/svg/LayoutSVGResourceClipper.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
index 7a74cd77b9b53809b7c27d04914bf85e81cbe8c4..3ab5556ec6efbbb4c4122ae25e96ae48bf6186f8 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.cpp
@@ -49,7 +49,7 @@ LayoutSVGResourceClipper::~LayoutSVGResourceClipper()
void LayoutSVGResourceClipper::removeAllClientsFromCache(bool markForInvalidation)
{
m_clipContentPath.clear();
- m_clipContentPicture.clear();
+ m_clipContentPicture.reset();
m_localClipBounds = FloatRect();
markAllClientsForInvalidation(markForInvalidation ? LayoutAndBoundariesInvalidation : ParentOnlyInvalidation);
}
@@ -158,7 +158,7 @@ bool LayoutSVGResourceClipper::asPath(const AffineTransform& animatedLocalTransf
return true;
}
-PassRefPtr<const SkPicture> LayoutSVGResourceClipper::createContentPicture()
+sk_sp<const SkPicture> LayoutSVGResourceClipper::createContentPicture()
{
ASSERT(frame());
if (m_clipContentPicture)

Powered by Google App Engine
This is Rietveld 408576698