Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(811)

Unified Diff: ash/touch/touch_transformer_controller.cc

Issue 958123003: Fix touch in software mirror mode when there is no internal display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698