content: don't constantly recreate injector
This changes SyntheticGestureTargetAura to have an aura::EventInjector rather than constantly creating one. In mash, EventInjector sends events to the window service for dispatch. EventInjector establishes the connection as necessary, but as SyntheticGestureTargetAura continually recreates EventInjector the connection must be brough up (and destroyed) for each event. This is non-trivially and adds unnecessary latency to perf tests. BUG=none TEST=none Change-Id: I22cc6ffe37808586ccd8904b75637e14f2532aea Reviewed-on: https://chromium-review.googlesource.com/c/1311536Reviewed-by:Jun Mukai <mukai@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#604449}
Showing
Please register or sign in to comment