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

Unified Diff: cc/blink/web_image_layer_impl.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/animation/animation_player.cc ('k') | cc/layers/picture_image_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_image_layer_impl.cc
diff --git a/cc/blink/web_image_layer_impl.cc b/cc/blink/web_image_layer_impl.cc
index 68f61985feac682519e266ba35b9c4a90593bcd2..32f753053b4be4fe88a5640ad6d14452d32cbe0b 100644
--- a/cc/blink/web_image_layer_impl.cc
+++ b/cc/blink/web_image_layer_impl.cc
@@ -23,9 +23,8 @@ blink::WebLayer* WebImageLayerImpl::layer() {
}
void WebImageLayerImpl::setImage(const SkImage* image) {
- skia::RefPtr<const SkImage> imageRef = skia::SharePtr(image);
static_cast<cc::PictureImageLayer*>(layer_->layer())
- ->SetImage(std::move(imageRef));
+ ->SetImage(sk_ref_sp(image));
static_cast<WebLayerImplFixedBounds*>(layer_.get())
->SetFixedBounds(gfx::Size(image->width(), image->height()));
}
« no previous file with comments | « cc/animation/animation_player.cc ('k') | cc/layers/picture_image_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698