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

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

Issue 2870543002: Removed PassRefPtr to RefPtr copies from unit tests. (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
« no previous file with comments | « third_party/WebKit/Source/platform/TimerTest.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/Canvas2DLayerBridgeTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp
index ecec9e6b48679b68839e849cfee560821e12e22a..f150988465168a14fe92abc3855b9695f273dd85 100644
--- a/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp
@@ -69,7 +69,7 @@ class Canvas2DLayerBridgePtr {
public:
Canvas2DLayerBridgePtr() {}
Canvas2DLayerBridgePtr(PassRefPtr<Canvas2DLayerBridge> layer_bridge)
- : layer_bridge_(layer_bridge) {}
+ : layer_bridge_(std::move(layer_bridge)) {}
~Canvas2DLayerBridgePtr() { Clear(); }
@@ -82,7 +82,7 @@ class Canvas2DLayerBridgePtr {
void operator=(PassRefPtr<Canvas2DLayerBridge> layer_bridge) {
DCHECK(!layer_bridge_);
- layer_bridge_ = layer_bridge;
+ layer_bridge_ = std::move(layer_bridge);
}
Canvas2DLayerBridge* operator->() { return layer_bridge_.Get(); }
« no previous file with comments | « third_party/WebKit/Source/platform/TimerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698