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

Unified Diff: ash/display/display_info.h

Issue 578553002: Use DSF instead of UI scale if the native DSF is 1.25 and UI Scale is 0.8x (dsf=1.25 equivalent) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove upgrade Created 6 years, 3 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: ash/display/display_info.h
diff --git a/ash/display/display_info.h b/ash/display/display_info.h
index adcf0482aed59533bd4e94a8afca7b5708d3eed9..a7db7f06a2c14acecf756d0e45187170f4f8c5a5 100644
--- a/ash/display/display_info.h
+++ b/ash/display/display_info.h
@@ -94,6 +94,11 @@ class ASH_EXPORT DisplayInfo {
// scale on 1x DSF to 1.2 scale on 2x DSF.
static void SetAllowUpgradeToHighDPI(bool enable);
+ // When this is set to true on the device whose internal display has
+ // 1.25 dsf, Chrome uses 1.0f as a default scale factor, and uses
+ // dsf 1.25 when UI scaling is set to 0.8f.
+ static void SetUse125DSFForUIScaling(bool enable);
+
int64 id() const { return id_; }
// The name of the display.

Powered by Google App Engine
This is Rietveld 408576698