• Xida Chen's avatar
    Bundle white listed touch action into the compositor ack · 15d9e1b4
    Xida Chen authored
    With kCompositorTouchAction turned on, a touch event is acked from the
    compositor thread instead of the main thread. Then the white listed
    touch action is sent from the compositor to the browser from a separate
    IPC. There is a potential race condition here, that the white listed
    touch action would arrive before or after the ack. It could also happen
    that the white listed touch action arrives after some gesture events
    being dispatched, for example, the GSB might have reached the
    TouchActionFilter while the white listed touch action is not arrived yet.
    
    To solve this problem, this CL puts the white listed touch action as
    a callback parameter, and send it through the ack, to the browser.
    
    Bug: 905325, 876323
    Change-Id: Ia9d0bb02b57291d2333f6cfe6959430ff41b5084
    Reviewed-on: https://chromium-review.googlesource.com/c/1336071
    Commit-Queue: Xida Chen <xidachen@chromium.org>
    Reviewed-by: default avatarNavid Zolghadr <nzolghadr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#609429}
    15d9e1b4
input_router_impl.cc 27.7 KB