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

Unified Diff: cc/trees/layer_tree_host_pixeltest_blending.cc

Issue 1455023002: cc: Replace Pass() with std::move() in some subdirs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-cc
Patch Set: pass-cc2: . Created 5 years, 1 month 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 | « cc/trees/layer_tree_host_perftest.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_blending.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_blending.cc b/cc/trees/layer_tree_host_pixeltest_blending.cc
index 688c9fbc1ca4c8c62473963fffbbdcf09ec7b0fd..29ab0d0a6dc8aa3c471347f6ef70575cccf6be49 100644
--- a/cc/trees/layer_tree_host_pixeltest_blending.cc
+++ b/cc/trees/layer_tree_host_pixeltest_blending.cc
@@ -145,7 +145,7 @@ class LayerTreeHostBlendingPixelTest : public LayerTreeHostPixelResourceTest {
layer->SetBounds(gfx::Size(width, height));
skia::RefPtr<const SkImage> image =
skia::AdoptRef(backing_store->newImageSnapshot());
- layer->SetImage(image.Pass());
+ layer->SetImage(std::move(image));
return layer;
}
@@ -170,7 +170,7 @@ class LayerTreeHostBlendingPixelTest : public LayerTreeHostPixelResourceTest {
paint);
skia::RefPtr<const SkImage> image =
skia::AdoptRef(surface->newImageSnapshot());
- mask->SetImage(image.Pass());
+ mask->SetImage(std::move(image));
layer->SetMaskLayer(mask.get());
}
« no previous file with comments | « cc/trees/layer_tree_host_perftest.cc ('k') | cc/trees/layer_tree_host_pixeltest_masks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698