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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.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/graphics/paint/DrawingDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h
index 1e41352fe950a20bf32b3c4c5cae42607c2aaa9d..f7ca846d021eb40605de8ad3aaf5286d848e49f8 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h
@@ -18,7 +18,7 @@ class PLATFORM_EXPORT DrawingDisplayItem final : public DisplayItem {
public:
DrawingDisplayItem(const DisplayItemClient& client, Type type, sk_sp<const SkPicture> picture, bool knownToBeOpaque = false)
: DisplayItem(client, type, sizeof(*this))
- , m_picture(picture && picture->approximateOpCount() ? picture : nullptr)
+ , m_picture(picture && picture->approximateOpCount() ? std::move(picture) : nullptr)
, m_knownToBeOpaque(knownToBeOpaque)
{
DCHECK(isDrawingType(type));

Powered by Google App Engine
This is Rietveld 408576698