summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/tab_icon_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/tab_icon_view.cc')
-rw-r--r--chrome/browser/ui/views/tab_icon_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/views/tab_icon_view.cc b/chrome/browser/ui/views/tab_icon_view.cc
index 800a163..7f0e6a1 100644
--- a/chrome/browser/ui/views/tab_icon_view.cc
+++ b/chrome/browser/ui/views/tab_icon_view.cc
@@ -130,9 +130,9 @@ void TabIconView::PaintIcon(gfx::Canvas* canvas,
int dest_h = static_cast<int>(float_src_h * scale);
// Center the scaled image.
- canvas->DrawBitmapInt(image, src_x, src_y, src_w, src_h,
- (width() - dest_w) / 2, (height() - dest_h) / 2, dest_w,
- dest_h, filter);
+ canvas->DrawImageInt(image, src_x, src_y, src_w, src_h,
+ (width() - dest_w) / 2, (height() - dest_h) / 2, dest_w,
+ dest_h, filter);
}
void TabIconView::OnPaint(gfx::Canvas* canvas) {