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

Unified Diff: content/renderer/child_frame_compositing_helper.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
Index: content/renderer/child_frame_compositing_helper.cc
diff --git a/content/renderer/child_frame_compositing_helper.cc b/content/renderer/child_frame_compositing_helper.cc
index cad94adbde011de06470dacc41008c6ecc7891d7..cc2ba004c4d0ef80aea5ef37152d78001b094e9e 100644
--- a/content/renderer/child_frame_compositing_helper.cc
+++ b/content/renderer/child_frame_compositing_helper.cc
@@ -129,9 +129,7 @@ void ChildFrameCompositingHelper::ChildFrameGone() {
web_layer_->bounds().height > sad_bitmap->height()) {
scoped_refptr<cc::PictureImageLayer> sad_layer =
cc::PictureImageLayer::Create();
- skia::RefPtr<SkImage> image =
- skia::AdoptRef(SkImage::NewFromBitmap(*sad_bitmap));
- sad_layer->SetImage(image);
+ sad_layer->SetImage(SkImage::MakeFromBitmap(*sad_bitmap));
sad_layer->SetBounds(
gfx::Size(sad_bitmap->width(), sad_bitmap->height()));
sad_layer->SetPosition(gfx::PointF(
« no previous file with comments | « content/common/cc_messages_unittest.cc ('k') | third_party/WebKit/Source/platform/graphics/CompositorFilterOperations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698