Don't wait endlessly for flushing the batched queries sent to the GPU driver
during H/W decode

We currently have a loop in the DXVA decoder on Windows 7 and above where we flush
the queued D3D command bufers and wait for the operation to complete. This causes an 
infinite loop on certain multicore machines due to a bug in the IDirect3DQuery9::GetData
call not returning the correct result. This seems to be a very old bug dating back to April 2008
http://us.generation-nt.com/idirect3dquery9-getdata-fails-return-ok-multi-core-cpus-help-26986872.html

Fix for now is to have an upper limit of 10 iterations while we wait for the flush to complete. ld

BUG=149139
R=apatrick
Review URL: https://chromiumcodereview.appspot.com/11369229

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168093 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed