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

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

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/layout/svg/LayoutSVGResourceClipper.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.h
index 3df4ca6ec5f362a0858be8834cfe5aa88f8beb89..af2c7056d863242d072d548638514a2b49380ecd 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceClipper.h
@@ -22,6 +22,7 @@
#include "core/layout/svg/LayoutSVGResourceContainer.h"
#include "core/svg/SVGClipPathElement.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
class SkPicture;
@@ -47,7 +48,7 @@ public:
SVGUnitTypes::SVGUnitType clipPathUnits() const { return toSVGClipPathElement(element())->clipPathUnits()->currentValue()->enumValue(); }
bool asPath(const AffineTransform&, const FloatRect& referenceBox, Path&);
- PassRefPtr<const SkPicture> createContentPicture();
+ sk_sp<const SkPicture> createContentPicture();
bool hasCycle() { return m_inClipExpansion; }
void beginClipExpansion() { ASSERT(!m_inClipExpansion); m_inClipExpansion = true; }
@@ -62,7 +63,7 @@ private:
Path m_clipContentPath;
// Cache of the clip path picture when falling back to masking for clipping.
- RefPtr<const SkPicture> m_clipContentPicture;
+ sk_sp<const SkPicture> m_clipContentPicture;
FloatRect m_localClipBounds;

Powered by Google App Engine
This is Rietveld 408576698