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

Unified Diff: content/public/browser/favicon_status.cc

Issue 10832128: Convert FaviconStatus::bitmap from SkBitmap to gfx::Image. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests? Created 8 years, 4 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/public/browser/favicon_status.cc
diff --git a/content/public/browser/favicon_status.cc b/content/public/browser/favicon_status.cc
index c9da916999422ed2d275fea8fca91e5d9174cebc..987ea61ce2b1c8117ccc93374c6bba01872a46b6 100644
--- a/content/public/browser/favicon_status.cc
+++ b/content/public/browser/favicon_status.cc
@@ -10,7 +10,11 @@
namespace content {
FaviconStatus::FaviconStatus() : valid(false) {
- bitmap = *GetContentClient()->browser()->GetDefaultFavicon()->bitmap();
+ image = gfx::Image(*GetContentClient()->browser()->GetDefaultFavicon());
+}
+
+SkBitmap FaviconStatus::AsBitmap() const {
+ return image.IsEmpty() ? SkBitmap() : *image.ToSkBitmap();
}
} // namespace content
« content/public/browser/favicon_status.h ('K') | « content/public/browser/favicon_status.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698