Wait on fence before reusing DXVA picture buffer

This ensures that the decoder won't write a new frame into the picture buffer before the compositor reads the previous frame.

BUG=585685

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

Cr-Commit-Position: refs/heads/master@{#378636}
(cherry picked from commit 27c9c30a074e9cf45babd66c22d336703797edea)
TBR=ananta@chromium.org

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

Cr-Commit-Position: refs/branch-heads/2661@{#93}
Cr-Branched-From: ef6f6ae5e4c96622286b563658d5cd62a6cf1197-refs/heads/master@{#378081}
2 files changed