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

Unified Diff: cc/playback/filter_display_item.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: Florin's nits 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 | « cc/playback/display_item_list_unittest.cc ('k') | cc/raster/gpu_rasterizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/filter_display_item.cc
diff --git a/cc/playback/filter_display_item.cc b/cc/playback/filter_display_item.cc
index af42baa84cb74c1f2b9ecb6e57efb6530d6fcc44..44e6776e832753dc41580c55db2e640f307c2b11 100644
--- a/cc/playback/filter_display_item.cc
+++ b/cc/playback/filter_display_item.cc
@@ -63,14 +63,13 @@ void FilterDisplayItem::Raster(SkCanvas* canvas,
canvas->save();
canvas->translate(bounds_.x(), bounds_.y());
- skia::RefPtr<SkImageFilter> image_filter =
- RenderSurfaceFilters::BuildImageFilter(
- filters_, gfx::SizeF(bounds_.width(), bounds_.height()));
+ sk_sp<SkImageFilter> image_filter = RenderSurfaceFilters::BuildImageFilter(
+ filters_, gfx::SizeF(bounds_.width(), bounds_.height()));
SkRect boundaries = SkRect::MakeWH(bounds_.width(), bounds_.height());
SkPaint paint;
paint.setXfermodeMode(SkXfermode::kSrcOver_Mode);
- paint.setImageFilter(image_filter.get());
+ paint.setImageFilter(std::move(image_filter));
canvas->saveLayer(&boundaries, &paint);
canvas->translate(-bounds_.x(), -bounds_.y());
« no previous file with comments | « cc/playback/display_item_list_unittest.cc ('k') | cc/raster/gpu_rasterizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698