• Xiyuan Xia's avatar
    ash: Fix WorkspaceWindowResizerTest.ResizeHistogram · 8277b65c
    Xiyuan Xia authored
    - WorkspaceWindowResizer::CompleteDrag() does not necessarily
      trigger a new compositor frame. As a result, the wait for the
      next frame could time out. This CL fixes the issue by explicitly
      marking a damaged rect to ensure a new frame is produced;
    - Fix ui::WaitForNextFrameToBePresented use-after-free by using
      a CancelableCallback as the frame presented callback so that
      local var |runloop| is not accessed when it times out;
    
    Bug: 1047657
    Change-Id: I6e7ac27f14d92adf3c9d1535fec62e32e3964f2e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2036369Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Xiyuan Xia <xiyuan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#738176}
    8277b65c
test_utils.cc 2.16 KB