Chromium Code Reviews| Index: ash/host/ash_window_tree_host_unified.cc |
| diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc |
| index 550a13d6098a5b9f8e18eeb0550408d8db1f5e2d..a103ac8dc0a1a70cf77dfe74bbbeac883f307364 100644 |
| --- a/ash/host/ash_window_tree_host_unified.cc |
| +++ b/ash/host/ash_window_tree_host_unified.cc |
| @@ -14,6 +14,7 @@ |
| #include "ui/aura/window_event_dispatcher.h" |
| #include "ui/aura/window_targeter.h" |
| #include "ui/compositor/compositor.h" |
| +#include "ui/gfx/geometry/dip_util.h" |
| #include "ui/gfx/geometry/insets.h" |
| #include "ui/platform_window/stub/stub_window.h" |
| @@ -51,7 +52,8 @@ AshWindowTreeHostUnified::AshWindowTreeHostUnified( |
| const gfx::Rect& initial_bounds) |
| : AshWindowTreeHostPlatform() { |
| std::unique_ptr<ui::PlatformWindow> window(new ui::StubWindow(this)); |
| - window->SetBounds(initial_bounds); |
| + window->SetBounds(gfx::ConvertRectToPixel(compositor()->device_scale_factor(), |
| + initial_bounds)); |
|
sadrul
2016/11/21 17:39:50
Hm, I actually think this doesn't need to be scale
riajiang
2016/11/21 19:24:22
Done. As discussed offline, bounds_in_native is in
|
| SetPlatformWindow(std::move(window)); |
| } |