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

Unified Diff: ui/display/manager/chromeos/display_change_observer.cc

Issue 2945913003: Add 1.6x mode. (Closed)
Patch Set: Add 1.6x support Created 3 years, 6 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: ui/display/manager/chromeos/display_change_observer.cc
diff --git a/ui/display/manager/chromeos/display_change_observer.cc b/ui/display/manager/chromeos/display_change_observer.cc
index 8934783a9373a40ba5a59f0dfc469972d1de5746..392598069bb01e7c1babbeaae75faf0abf168f3b 100644
--- a/ui/display/manager/chromeos/display_change_observer.cc
+++ b/ui/display/manager/chromeos/display_change_observer.cc
@@ -37,9 +37,9 @@ struct DeviceScaleFactorDPIThreshold {
float device_scale_factor;
};
-const DeviceScaleFactorDPIThreshold kThresholdTable[] = {
+const DeviceScaleFactorDPIThreshold kThresholdTableForInternal[] = {
{220.0f, 2.0f},
- {180.0f, 1.5f},
+ {200.0f, 1.6f},
{150.0f, 1.25f},
{0.0f, 1.0f},
};
@@ -290,9 +290,9 @@ void DisplayChangeObserver::OnTouchscreenDeviceConfigurationChanged() {
// static
float DisplayChangeObserver::FindDeviceScaleFactor(float dpi) {
- for (size_t i = 0; i < arraysize(kThresholdTable); ++i) {
- if (dpi > kThresholdTable[i].dpi)
- return kThresholdTable[i].device_scale_factor;
+ for (size_t i = 0; i < arraysize(kThresholdTableForInternal); ++i) {
+ if (dpi > kThresholdTableForInternal[i].dpi)
+ return kThresholdTableForInternal[i].device_scale_factor;
}
return 1.0f;
}
« no previous file with comments | « ash/display/display_manager_unittest.cc ('k') | ui/display/manager/chromeos/display_change_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698