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

Unified Diff: third_party/WebKit/Source/platform/graphics/PicturePattern.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/platform/graphics/PicturePattern.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp b/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp
index eb79de6de8bdc138794e912a4060db5d9e0862cc..8450112d54da256004a04b7b4aafecde3387a449 100644
--- a/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PicturePattern.cpp
@@ -10,15 +10,15 @@
namespace blink {
-PassRefPtr<PicturePattern> PicturePattern::create(PassRefPtr<SkPicture> picture,
+PassRefPtr<PicturePattern> PicturePattern::create(sk_sp<SkPicture> picture,
RepeatMode repeatMode)
{
- return adoptRef(new PicturePattern(picture, repeatMode));
+ return adoptRef(new PicturePattern(std::move(picture), repeatMode));
}
-PicturePattern::PicturePattern(PassRefPtr<SkPicture> picture, RepeatMode mode)
+PicturePattern::PicturePattern(sk_sp<SkPicture> picture, RepeatMode mode)
: Pattern(mode)
- , m_tilePicture(toSkSp(picture))
+ , m_tilePicture(std::move(picture))
{
// All current clients use RepeatModeXY, so we only support this mode for now.
ASSERT(isRepeatXY());

Powered by Google App Engine
This is Rietveld 408576698