| Index: ui/aura/window_tree_host.cc
|
| diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
|
| index d8f9940ceb4c12b278ffce05de5907ad666d1355..8a4535de42add1badfbfe89db1716d465800f49b 100644
|
| --- a/ui/aura/window_tree_host.cc
|
| +++ b/ui/aura/window_tree_host.cc
|
| @@ -273,6 +273,12 @@ void WindowTreeHost::OnHostResized(const gfx::Size& new_size) {
|
| gfx::Size adjusted_size(new_size);
|
| adjusted_size.Enlarge(output_surface_padding_.width(),
|
| output_surface_padding_.height());
|
| + display::Display display =
|
| + display::Screen::GetScreen()->GetDisplayNearestWindow(window());
|
| +
|
| + LOG(ERROR) << "OnHostResized called:" << new_size.ToString()
|
| + << ", display=" << display.ToString();
|
| +
|
| // The compositor should have the same size as the native root window host.
|
| // Get the latest scale from display because it might have been changed.
|
| compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()),
|
|
|