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

Issue 1913913004: Regularly poll the X11 event queue. (Closed)

Created:
4 years, 8 months ago by jeffbrown
Modified:
4 years, 7 months ago
Reviewers:
jamesr, abarth
CC:
mojo-reviews_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Regularly poll the X11 event queue. This change ensures that we deliver events which have been enqueued in memory in a timely fashion. Previously they would just sit there and rot until something happened to kick the display connection file descriptor resulting in greyed out windows and delayed input events. Added the "--dispatch-one-event-per-loop" switch to experiment with a mode where the event loop only dispatches one X11 event each iteration. By default, we dispatch all pending events to minimize input dispatch latency. Bug: 661 R=abarth@google.com, jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/6f37494c4bbcdc32e0a869bf0f08c6f1e12fdabc

Patch Set 1 #

Patch Set 2 : update due to change in base API #

Patch Set 3 : added a switch to dispatch one event at a time #

Patch Set 4 : update deps #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -16 lines) Patch
M DEPS View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/event_switches.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/event_switches.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.h View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.cc View 1 2 3 chunks +15 lines, -7 lines 0 comments Download
M ui/events/platform/x11/x11_event_source_libevent.cc View 1 3 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
jeffbrown
4 years, 8 months ago (2016-04-26 02:43:38 UTC) #3
abarth
lgtm
4 years, 7 months ago (2016-04-26 16:54:35 UTC) #4
jamesr
Here's a proposal - implement both the drain-everything (or drain-all-pending) and drain-one behaviors and configure ...
4 years, 7 months ago (2016-04-28 21:08:25 UTC) #5
jeffbrown
@jamesr, did you want to take another look at this now that I implemented your ...
4 years, 7 months ago (2016-05-17 00:25:46 UTC) #7
jamesr
Sorry, I thought this landed ages ago. I must have confused this with the dependent ...
4 years, 7 months ago (2016-05-17 00:27:45 UTC) #8
jeffbrown
4 years, 7 months ago (2016-05-18 00:26:43 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
6f37494c4bbcdc32e0a869bf0f08c6f1e12fdabc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698