• Bo Liu's avatar
    sync compositor: Version CompositorFrameMetadata · a7e5f4d9
    Bo Liu authored
    CompositorFrameMetadata can arrive on the UI thread out of order:
    Metadata is sent from compositor to UI in response to synchronous or
    asynchronous draws. The synchronous draw replies is processed
    immediately, even if there are replies to asynchronous draws pending. So
    when there is a mix of sync and async draws, it's possible for metadata
    to arrive out of order.
    
    This has been a theoretical problem for a long time, but only became
    real problem when FrameSwapMessageQueue was expecting metadata to be
    ordered. The only practical fix is to simply drop out of order metadata
    instead, which FrameSwapMessageQueue is designed to handle already.
    
    Bug: 821706
    Change-Id: I493862ba6d0838097f26e824359f03017eaa2a35
    Reviewed-on: https://chromium-review.googlesource.com/985096Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Commit-Queue: Bo <boliu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#546750}
    a7e5f4d9
synchronous_compositor_proxy_mojo.h 1.76 KB