Wrap all input handling with the SwapPromiseMonitor.
The SwapPromiseMonitor was moved to wrap only the call to WillHandleGestureEvent(), but that optionally handles the input event (it is handled for pepper when the mouse is locked). The event is otherwise handled later in the method in the call to HandleTouchEvent() or by calling out to the WebWidget. The SwapPromiseMonitor should be alive during all of these calls. This is a fix for the scope change in https://chromium-review.googlesource.com/c/chromium/src/+/1812915 R=dtapuska@chromium.org Bug: 994926 Change-Id: I3313415b4c8f90ac1b544d10a7bf68833e3ab872 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1831453 Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Reviewed-by:Dave Tapuska <dtapuska@chromium.org> Cr-Commit-Position: refs/heads/master@{#701572}
Showing
Please register or sign in to comment