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

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: fmalita review - deconstify sk_sp<>s 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
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..e7998e016595a83f8314cc623f04084130c56c4d 100644
--- a/cc/playback/filter_display_item.cc
+++ b/cc/playback/filter_display_item.cc
@@ -63,9 +63,8 @@ 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;

Powered by Google App Engine
This is Rietveld 408576698