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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h

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/image-decoders/ImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
index 2d739a56f26e095b93030d505820cfb7ee26fef7..51c81a37251705429adeecc8aa2a694606ffd686 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
@@ -105,7 +105,7 @@ public:
static std::unique_ptr<ImageDecoder> create(PassRefPtr<SharedBuffer> data, bool dataComplete,
AlphaOption alphaoption, GammaAndColorProfileOption colorOptions)
{
- return create(SegmentReader::createFromSharedBuffer(data), dataComplete, alphaoption, colorOptions);
+ return create(SegmentReader::createFromSharedBuffer(std::move(data)), dataComplete, alphaoption, colorOptions);
}
@@ -129,7 +129,7 @@ public:
void setData(PassRefPtr<SharedBuffer> data, bool allDataReceived)
{
- setData(SegmentReader::createFromSharedBuffer(data), allDataReceived);
+ setData(SegmentReader::createFromSharedBuffer(std::move(data)), allDataReceived);
}
virtual void onSetData(SegmentReader* data) { }

Powered by Google App Engine
This is Rietveld 408576698