• kylechar's avatar
    Reland "Don't disable draw during resize" · 00e1b903
    kylechar authored
    This is a reland of 985a1f41. Also fix
    an issue where SoftwareOutputDeviceWinProxy was crashing if we draw the
    root RenderPass but never call SwapBuffers() as the |swap_ack_callback_|
    wasn't set.
    
    Original change's description:
    > Don't disable draw during resize
    >
    > https://crrev.com/c/2011130 changed Display::DisableSwapUntilResize() to
    > also block draw instead of just swap. This had the side of effect of
    > blocking draw when the browser window is minimized, which means we stop
    > casting tab/window contents. Switch DisableSwapUntilResize() back to
    > just block swap instead of draw+swap.
    >
    > Bug: 1054239, b/149923568
    > Change-Id: I66a10dc1e801c56783107ce4412ab557f70da9f8
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2068642
    > Commit-Queue: kylechar <kylechar@chromium.org>
    > Reviewed-by: Saman Sami <samans@chromium.org>
    > Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#744018}
    
    Bug: 1054239, b/149923568
    Change-Id: I4f96bcb9547f4c4b24c020ffff728e4fa08d0ce1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2078840Reviewed-by: default avatarVasiliy Telezhnikov <vasilyt@chromium.org>
    Commit-Queue: kylechar <kylechar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#745161}
    00e1b903
display.h 10.6 KB