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

Unified Diff: chrome/browser/thumbnails/simple_thumbnail_crop.cc

Issue 14348033: NOT FOR SUBMIT - Windows Views HiDPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moving windows code into ifdef's Created 7 years, 7 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/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;

Powered by Google App Engine
This is Rietveld 408576698