Commit eb12702d authored by Mitsuru Oshima's avatar Mitsuru Oshima Committed by Commit Bot

Resurrect the temp hack for b/74845106

which I removed in https://crrev.com/c/1850273 because
some EVT devices still have this bug in their panel.

Bug: b/74845106
Test: none
Change-Id: I71fb2d461aef10ccd9889638e99cb16dc2d1570f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1885259Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#710177}
parent 05e7b56e
...@@ -306,9 +306,16 @@ ManagedDisplayInfo DisplayChangeObserver::CreateManagedDisplayInfo( ...@@ -306,9 +306,16 @@ ManagedDisplayInfo DisplayChangeObserver::CreateManagedDisplayInfo(
? 0 ? 0
: kInchInMm * mode_info->size().width() / : kInchInMm * mode_info->size().width() /
snapshot->physical_size().width(); snapshot->physical_size().width();
constexpr gfx::Size k225DisplaySizeHack(3000, 2000);
if (snapshot->type() == DISPLAY_CONNECTION_TYPE_INTERNAL) { if (snapshot->type() == DISPLAY_CONNECTION_TYPE_INTERNAL) {
new_info.set_native(true); new_info.set_native(true);
device_scale_factor = FindDeviceScaleFactor(dpi); // This is a stopgap hack to deal with b/74845106. Unfortunately, some old
// devices (like evt) does not have a firmware fix, so we need to keep this.
if (mode_info->size() == k225DisplaySizeHack)
device_scale_factor = 2.25f;
else if (dpi)
device_scale_factor = FindDeviceScaleFactor(dpi);
} else { } else {
ManagedDisplayMode mode; ManagedDisplayMode mode;
if (display_manager_->GetSelectedModeForDisplayId(snapshot->display_id(), if (display_manager_->GetSelectedModeForDisplayId(snapshot->display_id(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment