| Index: ui/aura/window_tree_host.cc
|
| diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
|
| index ef626257d735d2d0a96387217a894573dfe41d8b..155c4bae4b40e700d5dfeb82b071c999c49e0492 100644
|
| --- a/ui/aura/window_tree_host.cc
|
| +++ b/ui/aura/window_tree_host.cc
|
| @@ -61,14 +61,14 @@ WindowTreeHost* WindowTreeHost::GetForAcceleratedWidget(
|
|
|
| void WindowTreeHost::InitHost() {
|
| InitCompositor();
|
| - UpdateRootWindowSize(GetBounds().size());
|
| + UpdateRootWindowSize(GetBoundsInPixel().size());
|
| Env::GetInstance()->NotifyHostInitialized(this);
|
| window()->Show();
|
| }
|
|
|
| void WindowTreeHost::InitCompositor() {
|
| compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()),
|
| - GetBounds().size());
|
| + GetBoundsInPixel().size());
|
| compositor_->SetRootLayer(window()->layer());
|
| compositor_->SetDisplayColorSpace(
|
| GetICCProfileForCurrentDisplay().GetColorSpace());
|
| @@ -96,7 +96,7 @@ gfx::Transform WindowTreeHost::GetRootTransform() const {
|
|
|
| void WindowTreeHost::SetRootTransform(const gfx::Transform& transform) {
|
| window()->SetTransform(transform);
|
| - UpdateRootWindowSize(GetBounds().size());
|
| + UpdateRootWindowSize(GetBoundsInPixel().size());
|
| }
|
|
|
| gfx::Transform WindowTreeHost::GetInverseRootTransform() const {
|
| @@ -112,7 +112,7 @@ void WindowTreeHost::SetOutputSurfacePadding(const gfx::Insets& padding) {
|
| return;
|
|
|
| output_surface_padding_ = padding;
|
| - OnHostResized(GetBounds().size());
|
| + OnHostResized(GetBoundsInPixel().size());
|
| }
|
|
|
| void WindowTreeHost::UpdateRootWindowSize(const gfx::Size& host_size) {
|
| @@ -285,7 +285,7 @@ void WindowTreeHost::OnHostResized(const gfx::Size& new_size) {
|
| compositor_->SetScaleAndSize(GetDeviceScaleFactorFromDisplay(window()),
|
| adjusted_size);
|
|
|
| - gfx::Size layer_size = GetBounds().size();
|
| + gfx::Size layer_size = GetBoundsInPixel().size();
|
| // The layer, and the observers should be notified of the
|
| // transformed size of the root window.
|
| UpdateRootWindowSize(layer_size);
|
|
|