Force swap buffers when re-creating the buffers
commit61df9d531b103895877d163c1635bac16d686952
authordnicoara <dnicoara@chromium.org>
Thu, 10 Sep 2015 21:40:45 +0000 (10 14:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 10 Sep 2015 21:41:31 +0000 (10 21:41 +0000)
tree5ea4179e3c9178be9d784c642bb1634d037975c5
parent2ff6f4728066062448ae1bfb5ff32eb5c8561fe2
Force swap buffers when re-creating the buffers

The SwapResult provides a way to signal when the buffers are no longer
adequate and need to be re-allocated. Currently the surfaceless
implementation of the GpuBrowserCompositorOutputSurface will re-allocate
the buffers, however it doesn't swap again. Since the previous buffer
was rejected the display is showing an old frame.

BUG=511446
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review URL: https://codereview.chromium.org/1327343003

Cr-Commit-Position: refs/heads/master@{#348246}
cc/surfaces/display.cc
content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc