ash: Fix WorkspaceWindowResizerTest.ResizeHistogram
- 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:Scott Violet <sky@chromium.org> Commit-Queue: Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#738176}
Showing
Please register or sign in to comment