• chongz's avatar
    [Compositor event queue] Coalesce gesture scroll&pinch of the same sequence · 058c4c7e
    chongz authored
    It is possible to have |GestureScrollUpdate| and |GesturePinchUpdate| in the same
    |GestureScrollBegin/End| sequence. This CL coalesces multiple GSUs and GPUs into 1
    GSU and 1 GPU using matrix transformation.
    
    e.g.
    |GSB| -> |GSU| -> |GSU| -> |GPU| -> |GSU| -> |GSE|
    becomes
    |GSB| -> |GSU|* -> |GPU|* -> |GSE|
    
    * means coalesced events.
    
    Note that we have to go through the matrix when there are 2 adjacent pinch events
    with different pinch point as they would coalesce to 1 scroll event and 1 pinch event.
    
    BUG=661601
    
    Review-Url: https://codereview.chromium.org/2552853002
    Cr-Commit-Position: refs/heads/master@{#438534}
    058c4c7e
BUILD.gn 1.32 KB