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

Unified Diff: chrome/browser/android/thumbnail/thumbnail.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 | « chrome/browser/android/thumbnail/thumbnail.h ('k') | chrome/browser/android/thumbnail/thumbnail_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/thumbnail/thumbnail.cc
diff --git a/chrome/browser/android/thumbnail/thumbnail.cc b/chrome/browser/android/thumbnail/thumbnail.cc
index 0ad9dc748ade9517a94ea1c06a9db593d3fbb5cc..2b2a47017220c90033295a6067f3ac6719e291e7 100644
--- a/chrome/browser/android/thumbnail/thumbnail.cc
+++ b/chrome/browser/android/thumbnail/thumbnail.cc
@@ -68,7 +68,7 @@ void Thumbnail::SetBitmap(const SkBitmap& bitmap) {
bitmap_ = cc::UIResourceBitmap(bitmap);
}
-void Thumbnail::SetCompressedBitmap(skia::RefPtr<SkPixelRef> compressed_bitmap,
+void Thumbnail::SetCompressedBitmap(sk_sp<SkPixelRef> compressed_bitmap,
const gfx::Size& content_size) {
DCHECK(compressed_bitmap);
DCHECK(!content_size.IsEmpty());
@@ -78,7 +78,7 @@ void Thumbnail::SetCompressedBitmap(skia::RefPtr<SkPixelRef> compressed_bitmap,
compressed_bitmap->info().height());
scaled_content_size_ = gfx::ScaleSize(gfx::SizeF(content_size), 1.f / scale_);
scaled_data_size_ = gfx::ScaleSize(gfx::SizeF(data_size), 1.f / scale_);
- bitmap_ = cc::UIResourceBitmap(compressed_bitmap, data_size);
+ bitmap_ = cc::UIResourceBitmap(std::move(compressed_bitmap), data_size);
}
void Thumbnail::CreateUIResource() {
« no previous file with comments | « chrome/browser/android/thumbnail/thumbnail.h ('k') | chrome/browser/android/thumbnail/thumbnail_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698