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

Unified Diff: cc/trees/layer_tree_host_pixeltest_masks.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_pixeltest_blending.cc ('k') | cc/trees/layer_tree_host_pixeltest_readback.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_masks.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_masks.cc b/cc/trees/layer_tree_host_pixeltest_masks.cc
index 1e395ab4c633d209f8be697e9a15ed43fdf0ad21..6d3313c746710f2d2e6d3b4894d444c7d9d7c179 100644
--- a/cc/trees/layer_tree_host_pixeltest_masks.cc
+++ b/cc/trees/layer_tree_host_pixeltest_masks.cc
@@ -61,7 +61,7 @@ class MaskContentLayerClient : public ContentLayerClient {
skia::RefPtr<SkPicture> picture =
skia::AdoptRef(recorder.endRecordingAsPicture());
- item->SetNew(picture.Pass());
+ item->SetNew(std::move(picture));
display_list->Finalize();
return display_list;
@@ -115,7 +115,7 @@ TEST_P(LayerTreeHostMasksPixelTest, ImageMaskOfLayer) {
mask_display_list->Raster(canvas, nullptr, gfx::Rect(mask_bounds), 1.0f);
skia::RefPtr<const SkImage> image =
skia::AdoptRef(surface->newImageSnapshot());
- mask->SetImage(image.Pass());
+ mask->SetImage(std::move(image));
scoped_refptr<SolidColorLayer> green = CreateSolidColorLayerWithBorder(
gfx::Rect(25, 25, 50, 50), kCSSGreen, 1, SK_ColorBLACK);
@@ -339,7 +339,7 @@ class CheckerContentLayerClient : public ContentLayerClient {
skia::RefPtr<SkPicture> picture =
skia::AdoptRef(recorder.endRecordingAsPicture());
- item->SetNew(picture.Pass());
+ item->SetNew(std::move(picture));
display_list->Finalize();
return display_list;
@@ -379,7 +379,7 @@ class CircleContentLayerClient : public ContentLayerClient {
auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>();
skia::RefPtr<SkPicture> picture =
skia::AdoptRef(recorder.endRecordingAsPicture());
- item->SetNew(picture.Pass());
+ item->SetNew(std::move(picture));
display_list->Finalize();
return display_list;
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_blending.cc ('k') | cc/trees/layer_tree_host_pixeltest_readback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698