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

Unified Diff: ash/display/display_info.cc

Issue 408353002: Add virtual resolutions for 1.25 DSF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | ash/display/display_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_info.cc
diff --git a/ash/display/display_info.cc b/ash/display/display_info.cc
index 83a3923a4c071ff18070299a8835b12da5c97ddb..087f0a36a878b49b61310939c28083129c2f8e32 100644
--- a/ash/display/display_info.cc
+++ b/ash/display/display_info.cc
@@ -23,6 +23,7 @@
namespace ash {
namespace {
+// TODO(oshima): This feature is obsolete. Remove this after m38.
bool allow_upgrade_to_high_dpi = false;
}
@@ -253,7 +254,7 @@ float DisplayInfo::GetEffectiveDeviceScaleFactor() const {
if (allow_upgrade_to_high_dpi && configured_ui_scale_ < 1.0f &&
device_scale_factor_ == 1.0f) {
return 2.0f;
- } else if (device_scale_factor_ == 2.0f && configured_ui_scale_ == 2.0f) {
+ } else if (device_scale_factor_ == configured_ui_scale_) {
return 1.0f;
}
return device_scale_factor_;
@@ -263,7 +264,7 @@ float DisplayInfo::GetEffectiveUIScale() const {
if (allow_upgrade_to_high_dpi && configured_ui_scale_ < 1.0f &&
device_scale_factor_ == 1.0f) {
return configured_ui_scale_ * 2.0f;
- } else if (device_scale_factor_ == 2.0f && configured_ui_scale_ == 2.0f) {
+ } else if (device_scale_factor_ == configured_ui_scale_) {
return 1.0f;
}
return configured_ui_scale_;
« no previous file with comments | « no previous file | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698