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

Issue 922843002: Fix software mirror mode on Ozone part 2/2 (Closed)

Created:
5 years, 10 months ago by pkotwicz
Modified:
5 years, 9 months ago
Reviewers:
oshima, sadrul, spang
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix software mirror mode on Ozone part 2/2 This CL allows multiple touchscreens to be associated with one DriWindow. In software mirror mode the displays are in extended mode, but TouchTransformerController changes the touch event's coordinates to be in the primary DriWindow's bounds. BUG=444101 TEST=Manual, see bug Committed: https://crrev.com/ae752c047c2ac5682340a7f0e719a5f542cfe552 Cr-Commit-Position: refs/heads/master@{#319929}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -106 lines) Patch
M ash/host/ash_window_tree_host.h View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M ash/host/ash_window_tree_host_x11.h View 1 2 2 chunks +0 lines, -8 lines 0 comments Download
M ash/host/ash_window_tree_host_x11.cc View 1 2 3 4 5 6 4 chunks +6 lines, -13 lines 0 comments Download
M ash/touch/touch_transformer_controller.cc View 1 2 3 4 5 4 chunks +17 lines, -36 lines 0 comments Download
M ash/touch/touch_transformer_controller_unittest.cc View 1 2 3 4 5 4 chunks +11 lines, -11 lines 0 comments Download
M ui/events/devices/device_data_manager.h View 1 2 3 4 5 6 2 chunks +7 lines, -5 lines 0 comments Download
M ui/events/devices/device_data_manager.cc View 1 2 3 4 5 4 chunks +7 lines, -10 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.cc View 1 2 3 4 5 6 4 chunks +17 lines, -15 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_window_host.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 47 (6 generated)
pkotwicz
spang@ can you please take a look? I know that I need to change all ...
5 years, 10 months ago (2015-02-12 21:35:50 UTC) #2
spang
On 2015/02/12 21:35:50, pkotwicz wrote: > spang@ can you please take a look? > > ...
5 years, 10 months ago (2015-02-12 22:29:07 UTC) #3
pkotwicz
DeviceDataManager::GetDisplayForTouchDevice() is the inverse of DisplayInfo::touch_device_id(). It does not make sense for DeviceDataManager::GetDisplayForTouchDevice() to return ...
5 years, 10 months ago (2015-02-13 00:14:39 UTC) #4
spang
On 2015/02/13 00:14:39, pkotwicz wrote: > DeviceDataManager::GetDisplayForTouchDevice() is the inverse of > DisplayInfo::touch_device_id(). > It ...
5 years, 10 months ago (2015-02-13 16:53:02 UTC) #5
pkotwicz
+Oshima for his expert advice. We are trying to figure out the correct architecture to ...
5 years, 10 months ago (2015-02-13 17:06:19 UTC) #7
spang
On 2015/02/13 17:06:19, pkotwicz wrote: > +Oshima for his expert advice. > > We are ...
5 years, 10 months ago (2015-02-13 17:17:46 UTC) #8
sadrul
On 2015/02/13 17:17:46, spang wrote: > On 2015/02/13 17:06:19, pkotwicz wrote: > > +Oshima for ...
5 years, 10 months ago (2015-02-13 17:22:44 UTC) #9
spang
On 2015/02/13 17:22:44, sadrul wrote: > On 2015/02/13 17:17:46, spang wrote: > > On 2015/02/13 ...
5 years, 10 months ago (2015-02-13 18:00:05 UTC) #10
spang
On 2015/02/13 17:06:19, pkotwicz wrote: > +Oshima for his expert advice. > > We are ...
5 years, 10 months ago (2015-02-13 18:20:56 UTC) #11
pkotwicz
Oshima, Ping!
5 years, 10 months ago (2015-02-18 18:53:50 UTC) #12
oshima
On 2015/02/18 18:53:50, pkotwicz wrote: > Oshima, Ping! Sorry I was OOO last week. I'll ...
5 years, 10 months ago (2015-02-24 01:11:43 UTC) #13
oshima
On 2015/02/24 01:11:43, oshima wrote: > On 2015/02/18 18:53:50, pkotwicz wrote: > > Oshima, Ping! ...
5 years, 10 months ago (2015-02-24 16:12:46 UTC) #14
spang
On 2015/02/24 16:12:46, oshima wrote: > On 2015/02/24 01:11:43, oshima wrote: > > On 2015/02/18 ...
5 years, 10 months ago (2015-02-24 18:40:54 UTC) #15
pkotwicz
spang@ can you please take another look? I have added PlatformWindowDelegate::CanDispatchEvent() as you suggested. Thanks ...
5 years, 10 months ago (2015-02-24 22:47:41 UTC) #17
spang
On 2015/02/24 22:47:41, pkotwicz wrote: > spang@ can you please take another look? > > ...
5 years, 10 months ago (2015-02-24 22:58:08 UTC) #18
oshima
On 2015/02/24 22:58:08, spang wrote: > On 2015/02/24 22:47:41, pkotwicz wrote: > > spang@ can ...
5 years, 10 months ago (2015-02-25 17:47:10 UTC) #19
pkotwicz
I did some more investigation. We can have PlatformWindowDelegate::DispatchEvent() retarget touch events in software mirror ...
5 years, 10 months ago (2015-02-25 22:01:50 UTC) #20
pkotwicz
*gfx::DisplayInfo::touch_device_id() -> ash::DisplayInfo::touch_device_id()
5 years, 10 months ago (2015-02-25 22:04:07 UTC) #21
spang
Couldn't you build a generic event reflector? It doesn't seem like this problem is really ...
5 years, 10 months ago (2015-02-25 22:19:39 UTC) #22
robert.bradford
> - DeviceDataManager::GetDisplayForTouchDevice() is no longer reversible via > gfx::DisplayInfo::touch_device_id() I've got a local patch ...
5 years, 10 months ago (2015-02-25 22:26:26 UTC) #23
pkotwicz
This is an architecture problem not a coding problem. I do not know what the ...
5 years, 10 months ago (2015-02-25 22:58:22 UTC) #24
spang
On 2015/02/25 22:58:22, pkotwicz wrote: > This is an architecture problem not a coding problem. ...
5 years, 10 months ago (2015-02-25 23:02:34 UTC) #25
pkotwicz
Oshima, what do you think about comments 19 to 25?
5 years, 10 months ago (2015-02-25 23:20:34 UTC) #26
oshima
On 2015/02/25 22:01:50, pkotwicz wrote: > I did some more investigation. We can have > ...
5 years, 10 months ago (2015-02-26 18:30:43 UTC) #27
pkotwicz
Oshima, can you please take another look. I went ahead with option (C)
5 years, 10 months ago (2015-02-27 02:26:58 UTC) #28
oshima
it looks much simpler and readable to me. thanks! https://codereview.chromium.org/922843002/diff/60001/ui/events/devices/device_data_manager.cc File ui/events/devices/device_data_manager.cc (right): https://codereview.chromium.org/922843002/diff/60001/ui/events/devices/device_data_manager.cc#newcode79 ui/events/devices/device_data_manager.cc:79: ...
5 years, 9 months ago (2015-02-27 02:37:43 UTC) #29
pkotwicz
https://codereview.chromium.org/922843002/diff/60001/ui/events/devices/device_data_manager.cc File ui/events/devices/device_data_manager.cc (right): https://codereview.chromium.org/922843002/diff/60001/ui/events/devices/device_data_manager.cc#newcode79 ui/events/devices/device_data_manager.cc:79: return (touch_device_id > 0 && touch_device_id < kMaxDeviceNum); My ...
5 years, 9 months ago (2015-02-27 02:47:06 UTC) #30
oshima
ash/ lgtm https://codereview.chromium.org/922843002/diff/60001/ui/events/devices/device_data_manager.cc File ui/events/devices/device_data_manager.cc (right): https://codereview.chromium.org/922843002/diff/60001/ui/events/devices/device_data_manager.cc#newcode79 ui/events/devices/device_data_manager.cc:79: return (touch_device_id > 0 && touch_device_id < ...
5 years, 9 months ago (2015-02-27 20:45:31 UTC) #31
pkotwicz
Sadrul, can you please take a look at the changes in ui/events? https://codereview.chromium.org/922843002/diff/60001/ui/events/devices/device_data_manager.cc File ui/events/devices/device_data_manager.cc ...
5 years, 9 months ago (2015-03-01 16:04:00 UTC) #33
sadrul
https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h File ui/events/devices/device_data_manager.h (right): https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h#newcode47 ui/events/devices/device_data_manager.h:47: int64_t GetTargetDisplayForTouchDevice(unsigned int touch_device_id); How is this different from ...
5 years, 9 months ago (2015-03-02 16:56:18 UTC) #34
pkotwicz
Sadrul, can you please take another look? https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h File ui/events/devices/device_data_manager.h (right): https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h#newcode47 ui/events/devices/device_data_manager.h:47: int64_t GetTargetDisplayForTouchDevice(unsigned ...
5 years, 9 months ago (2015-03-02 17:55:53 UTC) #35
spang
On 2015/03/02 17:55:53, pkotwicz wrote: > Sadrul, can you please take another look? > > ...
5 years, 9 months ago (2015-03-02 19:12:36 UTC) #36
sadrul
https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h File ui/events/devices/device_data_manager.h (right): https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h#newcode47 ui/events/devices/device_data_manager.h:47: int64_t GetTargetDisplayForTouchDevice(unsigned int touch_device_id); On 2015/03/02 17:55:53, pkotwicz wrote: ...
5 years, 9 months ago (2015-03-03 04:43:09 UTC) #37
pkotwicz
Sadrul, is this what you had in mind? Using gfx::Display is a bit awkward because ...
5 years, 9 months ago (2015-03-03 20:34:56 UTC) #38
oshima
https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h File ui/events/devices/device_data_manager.h (right): https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h#newcode47 ui/events/devices/device_data_manager.h:47: int64_t GetTargetDisplayForTouchDevice(unsigned int touch_device_id); On 2015/03/03 04:43:09, sadrul wrote: ...
5 years, 9 months ago (2015-03-04 00:54:37 UTC) #39
sadrul
https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h File ui/events/devices/device_data_manager.h (right): https://codereview.chromium.org/922843002/diff/80001/ui/events/devices/device_data_manager.h#newcode47 ui/events/devices/device_data_manager.h:47: int64_t GetTargetDisplayForTouchDevice(unsigned int touch_device_id); On 2015/03/04 00:54:36, oshima wrote: ...
5 years, 9 months ago (2015-03-05 11:07:14 UTC) #40
pkotwicz
Sadrul, can you please take another look? There is only one "touch device to display" ...
5 years, 9 months ago (2015-03-05 20:55:47 UTC) #41
sadrul
LGTM (sorry about the delay)
5 years, 9 months ago (2015-03-09 21:18:52 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/922843002/140001
5 years, 9 months ago (2015-03-10 17:34:48 UTC) #45
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 9 months ago (2015-03-10 18:31:32 UTC) #46
commit-bot: I haz the power
5 years, 9 months ago (2015-03-10 18:32:08 UTC) #47
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ae752c047c2ac5682340a7f0e719a5f542cfe552
Cr-Commit-Position: refs/heads/master@{#319929}

Powered by Google App Engine
This is Rietveld 408576698