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

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

Issue 2628773002: Replaced RefPtr::release with std::move in Source/platform. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageSource.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
index 729c88f19067bfa266afe5d506a122a12817d8c9..e3b2240f07d9fc15d6c19232dc5c56d45a5a13db 100644
--- a/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PictureSnapshot.cpp
@@ -66,7 +66,7 @@ class SkiaImageDecoder final : public SkImageDeserializer {
RefPtr<SegmentReader> segmentReader =
SegmentReader::createFromSkData(SkData::MakeWithoutCopy(data, length));
std::unique_ptr<ImageDecoder> imageDecoder = ImageDecoder::create(
- segmentReader.release(), true, ImageDecoder::AlphaPremultiplied,
+ std::move(segmentReader), true, ImageDecoder::AlphaPremultiplied,
ColorBehavior::ignore());
if (!imageDecoder)
return nullptr;
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageSource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698