| Index: chrome/browser/views/tabs/tab_overview_cell.cc
|
| diff --git a/chrome/browser/views/tabs/tab_overview_cell.cc b/chrome/browser/views/tabs/tab_overview_cell.cc
|
| index c05aae318e0a6c7aaf05b5062a2d51ba54bfb8e2..b0b5f9f3f9d3bd02212363cfc41f1fc776e92b0d 100644
|
| --- a/chrome/browser/views/tabs/tab_overview_cell.cc
|
| +++ b/chrome/browser/views/tabs/tab_overview_cell.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "app/gfx/favicon_size.h"
|
| #include "base/string_util.h"
|
| +#include "skia/ext/image_operations.h"
|
| #include "views/border.h"
|
| #include "views/controls/image_view.h"
|
| #include "views/controls/label.h"
|
| @@ -64,7 +65,10 @@ TabOverviewCell::TabOverviewCell() {
|
| }
|
|
|
| void TabOverviewCell::SetThumbnail(const SkBitmap& thumbnail) {
|
| - thumbnail_view_->SetImage(thumbnail);
|
| + // Do mipmapped-based resampling to get closer to the correct size. The
|
| + // input bitmap isn't guaranteed to have any specific resolution.
|
| + thumbnail_view_->SetImage(skia::ImageOperations::DownsampleByTwoUntilSize(
|
| + thumbnail, kThumbnailWidth, kThumbnailHeight));
|
| }
|
|
|
| void TabOverviewCell::SetTitle(const string16& title) {
|
|
|