Allow Windows to use system Vsync if only one window is swapping
This makes the common case (single browser window) smoother. Having
multiple swapping windows visible will force the previous behavior.
This patch differs from a previous variant (https://codereview.chromium.org/
708483003)
in that there's now a "timeout" before we attempt turning on vsync again.
Specifically, we need to go for 60 frames without a frame where two
surfaces swap in order to turn Vsync on. This accounts for cases where
low-frequency updates in one window (blinking cursor) don't trigger
frequent vsync state changes. Also prevents pathologically bad cases
where two frequently updating windows would cause one another to skip
alternating frames.
BUG=422000
Review URL: https://codereview.chromium.org/
749483002
Cr-Commit-Position: refs/heads/master@{#309861}