• Peng Huang's avatar
    Fix crash in VulaknSwapChain during shutdown · 4069a6b6
    Peng Huang authored
    Suppose VulkanSwapChain::PostSubBuffer() and
    VulkanSwapChain::PostSubBufferAsync() should not be called, if previous
    call is pending. However we got some crash reports during shutdown,
    seems they are called with pending PostSubBuffer(). To fix the problem,
    we will always call WaitUntilPostSubBufferAsyncFinished() to make sure
    previous request is finished.
    
    Bug: 1155507
    Change-Id: Id2456ea160c0fe0ebefabedbe2d7e915f5c97a34
    Cq-Include-Trybots: luci.chromium.try:gpu-fyi-try-android-p-pixel-2-skv-32,gpu-fyi-try-linux-intel-skv,gpu-fyi-try-linux-nvidia-skv
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2601229Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
    Commit-Queue: Peng Huang <penghuang@chromium.org>
    Auto-Submit: Peng Huang <penghuang@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#839138}
    4069a6b6
vulkan_swap_chain.cc 21.5 KB