GPU VSync: add timer based v-sync as a backup mechanism for when display goes to sleep.

When display goes to sleep GPU v-sync is no longer available - D3D
calls that waits for v-blank returns with
STATUS_GRAPHICS_PRESENT_OCCLUDED error.
This change adds a backup mechanism which posts a delayed task to
wait for the next expected v-sync.

BUG=467617
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2722073002
Cr-Commit-Position: refs/heads/master@{#454095}
1 file changed