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

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

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 7 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/DecodingImageGenerator.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
index 1aef4b57a7c5bd9a3827d1fad2af733f342d6db6..cb35511ed17261faa6cb738a2bec4d08c5c6a8da 100644
--- a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp
@@ -211,8 +211,8 @@ SkImageGenerator* DecodingImageGenerator::Create(SkData* data) {
if (!frame)
return nullptr;
- return new DecodingImageGenerator(frame, info, segment_reader.Release(), true,
- 0);
+ return new DecodingImageGenerator(frame, info, std::move(segment_reader),
+ true, 0);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698