Chromium Code Reviews| Index: ash/touch/touch_transformer_controller.cc |
| diff --git a/ash/touch/touch_transformer_controller.cc b/ash/touch/touch_transformer_controller.cc |
| index aa6475bb8384eb9a55d58330c256cabaf1978b9c..d88416e6feb9146f2729ed1a597df3d2ece1993c 100644 |
| --- a/ash/touch/touch_transformer_controller.cc |
| +++ b/ash/touch/touch_transformer_controller.cc |
| @@ -204,8 +204,8 @@ void TouchTransformerController::UpdateTouchTransformer() const { |
| RootWindowController::ForWindow(root)->ash_host()->UpdateDisplayID( |
| display1_id, display2_id); |
| DisplayInfo source_display = |
| - gfx::Display::InternalDisplayId() == display1_id ? |
| - display1 : display2; |
| + display_controller->GetPrimaryDisplayId() == display1_id ? display1 |
| + : display2; |
|
oshima
2015/02/27 22:13:54
primary display can be external on the device that
pkotwicz
2015/03/01 01:51:14
That is true. However, in software mirror mode, if
pkotwicz
2015/03/01 03:32:50
Even if the internal display is not the primary di
|
| // Mapping from framebuffer size to the source display's native |
| // resolution. |
| device_manager->UpdateTouchInfoForDisplay( |