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

Unified Diff: chrome/browser/ui/views/tab_icon_view.cc

Issue 10824296: Enables HiDPI favicon to be displayed in tab strip on CrOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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: chrome/browser/ui/views/tab_icon_view.cc
diff --git a/chrome/browser/ui/views/tab_icon_view.cc b/chrome/browser/ui/views/tab_icon_view.cc
index 1330cd03fb6674f96753efb75bf7a5bcf8f0cd2f..0a2f97453e6e48f50017ffccc7e06ddf79e5a222 100644
--- a/chrome/browser/ui/views/tab_icon_view.cc
+++ b/chrome/browser/ui/views/tab_icon_view.cc
@@ -99,7 +99,8 @@ void TabIconView::PaintThrobber(gfx::Canvas* canvas) {
image_size, false);
}
-void TabIconView::PaintFavicon(gfx::Canvas* canvas, const SkBitmap& image) {
+void TabIconView::PaintFavicon(gfx::Canvas* canvas,
+ const gfx::ImageSkia& image) {
PaintIcon(canvas, image, 0, 0, image.width(), image.height(), true);
}
@@ -142,7 +143,7 @@ void TabIconView::OnPaint(gfx::Canvas* canvas) {
rendered = true;
PaintThrobber(canvas);
} else {
- SkBitmap favicon = model_->GetFaviconForTabIconView();
+ gfx::ImageSkia favicon = model_->GetFaviconForTabIconView();
if (!favicon.isNull()) {
rendered = true;
PaintFavicon(canvas, favicon);
« no previous file with comments | « chrome/browser/ui/views/tab_icon_view.h ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698