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 f010e84b4d21aaf9dad30754874c0b7a1eec5532..44f8e9372d5959674aa4ed2a75b6a00a065ae639 100644 |
--- a/chrome/browser/thumbnails/simple_thumbnail_crop.cc |
+++ b/chrome/browser/thumbnails/simple_thumbnail_crop.cc |
@@ -128,7 +128,11 @@ 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( |
+#if defined(HIGHDPI) |
+ copy_size, ui::GetScaleFactorScale(ui::SCALE_FACTOR_140P))); |
kevers
2013/06/03 17:28:50
ui::GetMaxScaleFactor() in place of the if-else?
girard
2013/06/03 22:31:55
Good idea. Done.
|
+#else |
copy_size, ui::GetScaleFactorScale(ui::SCALE_FACTOR_200P))); |
+#endif |
break; |
} |
return copy_size; |