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

Unified Diff: ui/display/manager/managed_display_info.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
« no previous file with comments | « ui/display/manager/managed_display_info.h ('k') | ui/display/test/display_manager_test_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/manager/managed_display_info.cc
diff --git a/ui/display/manager/managed_display_info.cc b/ui/display/manager/managed_display_info.cc
index 4ed44db6437ccde50ad2be05bc8f9d02d71377ca..c1fc55471ddf35ec455e6201824b5e1e0405cf52 100644
--- a/ui/display/manager/managed_display_info.cc
+++ b/ui/display/manager/managed_display_info.cc
@@ -33,7 +33,6 @@ const int64_t kSynthesizedDisplayIdStart = 2200000000LL;
int64_t synthesized_display_id = kSynthesizedDisplayIdStart;
const float kDpi96 = 96.0;
-bool use_125_dsf_for_ui_scaling = true;
// Check the content of |spec| and fill |bounds| and |device_scale_factor|.
// Returns true when |bounds| is found.
@@ -146,8 +145,7 @@ gfx::Size ManagedDisplayMode::GetSizeInDIP(bool is_internal) const {
size_dip.Scale(ui_scale_);
// DSF=1.25 is special on internal display. The screen is drawn with DSF=1.25
// but it doesn't affect the screen size computation.
- if (use_125_dsf_for_ui_scaling && is_internal &&
- device_scale_factor_ == 1.25f)
+ if (is_internal && device_scale_factor_ == 1.25f)
return gfx::ToFlooredSize(size_dip);
size_dip.Scale(1.0f / device_scale_factor_);
return gfx::ToFlooredSize(size_dip);
@@ -294,11 +292,6 @@ ManagedDisplayInfo ManagedDisplayInfo::CreateFromSpecWithID(
return display_info;
}
-// static
-void ManagedDisplayInfo::SetUse125DSFForUIScalingForTest(bool enable) {
- use_125_dsf_for_ui_scaling = enable;
-}
-
ManagedDisplayInfo::ManagedDisplayInfo()
: id_(kInvalidDisplayId),
has_overscan_(false),
@@ -511,7 +504,7 @@ bool ManagedDisplayInfo::IsColorProfileAvailable(
}
bool ManagedDisplayInfo::Use125DSFForUIScaling() const {
- return use_125_dsf_for_ui_scaling && Display::IsInternalDisplayId(id_);
+ return Display::IsInternalDisplayId(id_);
}
void ManagedDisplayInfo::AddInputDevice(int id) {
« no previous file with comments | « ui/display/manager/managed_display_info.h ('k') | ui/display/test/display_manager_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698