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

Unified Diff: ui/gfx/favicon_size.cc

Issue 2665623002: Fix Jumplist favicons to have high resolution in HDPI Windows displays (Closed)
Patch Set: Add faviconSize parameter to GetFaviconImageForPageURL() Created 3 years, 11 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
« components/favicon/core/favicon_service.h ('K') | « ui/gfx/favicon_size.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/favicon_size.cc
diff --git a/ui/gfx/favicon_size.cc b/ui/gfx/favicon_size.cc
index d0ba48a4ccdd597f0f3e12bd77f124c276f3c425..76c839b784f8aa8dcedc374f0cf02416c2b4927d 100644
--- a/ui/gfx/favicon_size.cc
+++ b/ui/gfx/favicon_size.cc
@@ -8,6 +8,8 @@ namespace gfx {
const int kFaviconSize = 16;
+const int kHdpiFaviconSize = 32;
sky 2017/01/31 23:28:45 This isn't entirely accurate. High dpi generally m
chengx 2017/02/02 20:52:58 Acknowledged.
+
void CalculateFaviconTargetSize(int* width, int* height) {
if (*width > kFaviconSize || *height > kFaviconSize) {
// Too big, resize it maintaining the aspect ratio.
« components/favicon/core/favicon_service.h ('K') | « ui/gfx/favicon_size.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698