summaryrefslogtreecommitdiffstats
path: root/ash/test/test_metro_viewer_process_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/test/test_metro_viewer_process_host.cc')
-rw-r--r--ash/test/test_metro_viewer_process_host.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ash/test/test_metro_viewer_process_host.cc b/ash/test/test_metro_viewer_process_host.cc
index ddcfa1b..5dd448c 100644
--- a/ash/test/test_metro_viewer_process_host.cc
+++ b/ash/test/test_metro_viewer_process_host.cc
@@ -26,10 +26,12 @@ void TestMetroViewerProcessHost::OnChannelError() {
}
void TestMetroViewerProcessHost::OnSetTargetSurface(
- gfx::NativeViewId target_surface) {
+ gfx::NativeViewId target_surface,
+ float device_scale) {
DLOG(INFO) << __FUNCTION__ << ", target_surface = " << target_surface;
HWND hwnd = reinterpret_cast<HWND>(target_surface);
- aura::RemoteWindowTreeHostWin::Instance()->SetRemoteWindowHandle(hwnd);
+ aura::RemoteWindowTreeHostWin::Instance()->
+ InitializeRemoteWindowAndScaleFactor(hwnd, device_scale);
aura::RemoteWindowTreeHostWin::Instance()->Connected(this);
}