| Index: chrome/browser/thumbnails/simple_thumbnail_crop.cc
|
| diff --git a/chrome/browser/thumbnails/simple_thumbnail_crop.cc b/chrome/browser/thumbnails/simple_thumbnail_crop.cc
|
| index c427b90f30c4d1701b6c70f3099bd982b65b1f15..c832925910414c72169e0961e25c0cfb1e100647 100644
|
| --- a/chrome/browser/thumbnails/simple_thumbnail_crop.cc
|
| +++ b/chrome/browser/thumbnails/simple_thumbnail_crop.cc
|
| @@ -8,6 +8,7 @@
|
| #include "content/public/browser/browser_thread.h"
|
| #include "skia/ext/platform_canvas.h"
|
| #include "ui/gfx/color_utils.h"
|
| +#include "ui/gfx/image/image_skia.h"
|
| #include "ui/gfx/screen.h"
|
| #include "ui/gfx/scrollbar_size.h"
|
| #include "ui/gfx/size_conversions.h"
|
| @@ -130,7 +131,7 @@ gfx::Size SimpleThumbnailCrop::GetCopySizeForThumbnail(
|
| DLOG(WARNING) << "Unsupported scale factor. Use the same copy size as "
|
| << "ui::SCALE_FACTOR_100P";
|
| copy_size = gfx::ToFlooredSize(gfx::ScaleSize(
|
| - copy_size, ui::GetMaxScaleFactor()));
|
| + copy_size, gfx::ImageSkia::GetMaxSupportedScale()));
|
| break;
|
| }
|
| return copy_size;
|
| @@ -183,8 +184,7 @@ gfx::Size SimpleThumbnailCrop::ComputeTargetSizeAtMaximumScale(
|
| const gfx::Size& given_size) {
|
| // TODO(mazda|oshima): Update thumbnail when the max scale factor changes.
|
| // crbug.com/159157.
|
| - float max_scale_factor =
|
| - ui::GetScaleFactorScale(ui::GetMaxScaleFactor());
|
| + float max_scale_factor = gfx::ImageSkia::GetMaxSupportedScale();
|
| return gfx::ToFlooredSize(gfx::ScaleSize(given_size, max_scale_factor));
|
| }
|
|
|
|
|