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

Unified Diff: cc/layers/picture_image_layer_unittest.cc

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 | « no previous file | cc/layers/picture_layer_unittest.cc » ('j') | cc/output/filter_operation.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_image_layer_unittest.cc
diff --git a/cc/layers/picture_image_layer_unittest.cc b/cc/layers/picture_image_layer_unittest.cc
index 434106b25e7eb92e81972f1cdc5c3afe8cfb35a0..0f0c53461c810e1f55d66b0936db83bc04af8402 100644
--- a/cc/layers/picture_image_layer_unittest.cc
+++ b/cc/layers/picture_image_layer_unittest.cc
@@ -38,9 +38,8 @@ TEST(PictureImageLayerTest, PaintContentsToDisplayList) {
image_canvas->drawRectCoords(0.f, 0.f, 100.f, 100.f, blue_paint);
image_canvas->drawRectCoords(100.f, 100.f, 200.f, 200.f, blue_paint);
- skia::RefPtr<const SkImage> image =
- skia::AdoptRef(image_surface->newImageSnapshot());
- layer->SetImage(std::move(image));
+ sk_sp<const SkImage> image(image_surface->makeImageSnapshot());
+ layer->SetImage(skia::SharePtr(image));
layer->SetBounds(gfx::Size(layer_rect.width(), layer_rect.height()));
scoped_refptr<DisplayItemList> display_list =
« no previous file with comments | « no previous file | cc/layers/picture_layer_unittest.cc » ('j') | cc/output/filter_operation.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698