[headless] Fix screenshots with gpu enabled.
Turns out this is due to two things:
1) We were overriding ShouldCreateCompositorFrameSink in the browser
compositor to always return false (which is unnecessary).
2) Contrary to what GpuBrowserCompositorOutputSurface and
SoftwareBrowserCompositorOutputSurface do, the
OffscreenBrowserCompositorOutputSurface wasn't letting the RWHI know
about swapped frames.
This fixes both issues.
BUG=681614
Review-Url: https://codereview.chromium.org/2631263003
Cr-Commit-Position: refs/heads/master@{#444694}
7 files changed