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

Unified Diff: chrome/browser/android/thumbnail/thumbnail.cc

Issue 2851253002: Remove legacy SkPixelRef API flag from Chrome (Closed)
Patch Set: More Android fixes Created 3 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 | « no previous file | chrome/browser/android/thumbnail/thumbnail_cache.cc » ('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 75886055921ff5c46bed86858aef3b798ea94ca9..d43209a8262a043ece72350629331d7c5fcfc938 100644
--- a/chrome/browser/android/thumbnail/thumbnail.cc
+++ b/chrome/browser/android/thumbnail/thumbnail.cc
@@ -74,8 +74,7 @@ void Thumbnail::SetCompressedBitmap(sk_sp<SkPixelRef> compressed_bitmap,
DCHECK(!content_size.IsEmpty());
retrieved_ = false;
ClearUIResourceId();
- gfx::Size data_size(compressed_bitmap->info().width(),
- compressed_bitmap->info().height());
+ gfx::Size data_size(compressed_bitmap->width(), compressed_bitmap->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(std::move(compressed_bitmap), data_size);
« no previous file with comments | « no previous file | chrome/browser/android/thumbnail/thumbnail_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698