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

Unified Diff: third_party/WebKit/Source/platform/graphics/Pattern.cpp

Issue 2306293002: Replaced PassRefPtr copies with moves in Source/platform. (Closed)
Patch Set: 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/Pattern.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Pattern.cpp b/third_party/WebKit/Source/platform/graphics/Pattern.cpp
index 63ae9480acb8b76a75a115e0cae3a258cad873f2..041c14ad316639ba61e1ca5c533f88ad69e47e52 100644
--- a/third_party/WebKit/Source/platform/graphics/Pattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Pattern.cpp
@@ -39,7 +39,7 @@ namespace blink {
PassRefPtr<Pattern> Pattern::createImagePattern(PassRefPtr<Image> tileImage, RepeatMode repeatMode)
{
- return ImagePattern::create(tileImage, repeatMode);
+ return ImagePattern::create(std::move(tileImage), repeatMode);
}
PassRefPtr<Pattern> Pattern::createPicturePattern(sk_sp<SkPicture> picture,

Powered by Google App Engine
This is Rietveld 408576698