Commit 304ebc82 authored by Christopher Cameron's avatar Christopher Cameron Committed by Commit Bot

Remove inappropriate early-out in OnWindowDisplayChanged

When moving between two screens that don't change scale factor, but do
change color space, this message was getting dropped.

Remove the early-out, because the call to UpdateSurface has its own
early-out.

Change-Id: I8772a8cf982739039800f41e89857856aa5693ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2062749Reviewed-by: default avatarKhushal <khushalsagar@chromium.org>
Commit-Queue: ccameron <ccameron@chromium.org>
Cr-Commit-Position: refs/heads/master@{#742240}
parent 240349a8
......@@ -981,11 +981,9 @@ void NativeWidgetMacNSWindowHost::OnWindowMiniaturizedChanged(
void NativeWidgetMacNSWindowHost::OnWindowDisplayChanged(
const display::Display& new_display) {
bool scale_factor_changed =
display_.device_scale_factor() != new_display.device_scale_factor();
bool display_id_changed = display_.id() != new_display.id();
display_ = new_display;
if (scale_factor_changed && compositor_) {
if (compositor_) {
compositor_->UpdateSurface(
ConvertSizeToPixel(display_.device_scale_factor(),
content_bounds_in_screen_.size()),
......
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