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

Issue 2077163003: Reduced number of UpdateDeviceList calls (Closed)

Created:
4 years, 6 months ago by Will Shackleton
Modified:
4 years, 4 months ago
Reviewers:
bokan, sadrul
CC:
chromium-reviews, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduced number of UpdateDeviceList calls I stopped UpdateDeviceList being called every time XISlaveSwitch events occur. BUG=609748 Committed: https://crrev.com/e620fd41c0c6acb7ffb3c44710553797b3c9deb9 Cr-Commit-Position: refs/heads/master@{#407597}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Applied comments, added functionality to only invalidate current scroll device #

Total comments: 4

Patch Set 3 : Removed default parameter value, changed if-return to CHECK #

Total comments: 4

Patch Set 4 : Changed DCHECK_EQ to else if, added ALL_DEVICES enum #

Total comments: 2

Patch Set 5 : Changed ALL_DEVICES to kAllDevices #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -10 lines) Patch
M ui/events/devices/x11/device_data_manager_x11.h View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.cc View 1 2 3 4 1 chunk +10 lines, -4 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.cc View 1 2 3 4 2 chunks +20 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
sadrul
https://codereview.chromium.org/2077163003/diff/1/ui/events/platform/x11/x11_event_source.cc File ui/events/platform/x11/x11_event_source.cc (right): https://codereview.chromium.org/2077163003/diff/1/ui/events/platform/x11/x11_event_source.cc#newcode228 ui/events/platform/x11/x11_event_source.cc:228: How about: bool should_update_list = false; if (xevent->type == ...
4 years, 6 months ago (2016-06-20 19:37:30 UTC) #3
Will Shackleton
Done that. I've also changed it to only invalidate the current device, as per https://github.com/GNOME/gtk/blob/master/gdk/x11/gdkdevicemanager-xi2.c#L974 ...
4 years, 6 months ago (2016-06-21 16:26:59 UTC) #4
Will Shackleton
Done that. I've also changed it to only invalidate the current device, as per https://github.com/GNOME/gtk/blob/master/gdk/x11/gdkdevicemanager-xi2.c#L974 ...
4 years, 6 months ago (2016-06-21 16:27:47 UTC) #5
bokan
I tried the patch. It seems to work nicely with multiple devices and the "first ...
4 years, 6 months ago (2016-06-22 20:12:30 UTC) #6
bokan
Can we land this and give it a try in dev channel?
4 years, 5 months ago (2016-06-27 13:47:53 UTC) #7
sadrul
https://codereview.chromium.org/2077163003/diff/20001/ui/events/devices/x11/device_data_manager_x11.h File ui/events/devices/x11/device_data_manager_x11.h (right): https://codereview.chromium.org/2077163003/diff/20001/ui/events/devices/x11/device_data_manager_x11.h#newcode205 ui/events/devices/x11/device_data_manager_x11.h:205: void InvalidateScrollClasses(int device_id = -1); Remove the default param-value. ...
4 years, 5 months ago (2016-06-27 14:49:22 UTC) #8
bokan
Will, we're unfortunately out of runway for M52. Is there a small patch we could ...
4 years, 5 months ago (2016-06-29 18:02:03 UTC) #9
Will Shackleton
On 2016/06/29 18:02:03, bokan wrote: > Will, we're unfortunately out of runway for M52. Is ...
4 years, 5 months ago (2016-06-29 18:10:08 UTC) #10
bokan
On 2016/06/29 18:10:08, Will Shackleton wrote: > On 2016/06/29 18:02:03, bokan wrote: > > Will, ...
4 years, 5 months ago (2016-06-29 18:11:32 UTC) #11
Will Shackleton
What's the recommended way in chromium to disable some code? #if 0 and a comment ...
4 years, 5 months ago (2016-06-29 18:13:59 UTC) #12
bokan
On 2016/06/29 18:13:59, Will Shackleton wrote: > What's the recommended way in chromium to disable ...
4 years, 5 months ago (2016-06-29 18:19:25 UTC) #13
Will Shackleton
https://codereview.chromium.org/2108283002/ created. On Wed, 29 Jun 2016 at 19:19 <bokan@chromium.org> wrote: > On 2016/06/29 18:13:59, ...
4 years, 5 months ago (2016-06-29 18:31:41 UTC) #14
Will Shackleton
I've made those changes. What's the process for getting this feature re-enabled for testing? A ...
4 years, 5 months ago (2016-07-12 16:05:05 UTC) #15
bokan
> What's the process for getting this feature re-enabled for testing? > A chrome://flags flag? ...
4 years, 5 months ago (2016-07-13 14:45:50 UTC) #16
sadrul
On 2016/07/13 14:45:50, bokan wrote: > > What's the process for getting this feature re-enabled ...
4 years, 5 months ago (2016-07-13 15:08:41 UTC) #17
bokan
On 2016/07/13 15:08:41, sadrul wrote: > On 2016/07/13 14:45:50, bokan wrote: > > > What's ...
4 years, 5 months ago (2016-07-13 15:10:11 UTC) #18
Will Shackleton
https://codereview.chromium.org/2077163003/diff/40001/ui/events/platform/x11/x11_event_source.cc File ui/events/platform/x11/x11_event_source.cc (right): https://codereview.chromium.org/2077163003/diff/40001/ui/events/platform/x11/x11_event_source.cc#newcode220 ui/events/platform/x11/x11_event_source.cc:220: DCHECK_EQ(XISlaveSwitch, xev->reason); On 2016/07/13 14:45:50, bokan wrote: > Is ...
4 years, 5 months ago (2016-07-14 18:11:10 UTC) #19
bokan
Thanks, still lgtm.
4 years, 5 months ago (2016-07-15 19:55:25 UTC) #20
sadrul
lgtm https://codereview.chromium.org/2077163003/diff/60001/ui/events/devices/x11/device_data_manager_x11.h File ui/events/devices/x11/device_data_manager_x11.h (right): https://codereview.chromium.org/2077163003/diff/60001/ui/events/devices/x11/device_data_manager_x11.h#newcode116 ui/events/devices/x11/device_data_manager_x11.h:116: }; Use "static const int kAllDevices = -1;" ...
4 years, 5 months ago (2016-07-19 15:03:24 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2077163003/80001
4 years, 4 months ago (2016-07-25 21:05:05 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-25 21:47:30 UTC) #26
commit-bot: I haz the power
4 years, 4 months ago (2016-07-25 21:52:55 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e620fd41c0c6acb7ffb3c44710553797b3c9deb9
Cr-Commit-Position: refs/heads/master@{#407597}

Powered by Google App Engine
This is Rietveld 408576698