Fix for the video seek test failures seen on the windows perf av builders. 
Fix for the video seek test failures seen on the windows perf av builders. 

The seek tests started failing since revision 159552 which restricted the number of pending output video
samples from the DXVA decoder on Windows to 1. These tests after decoding a number of frames send over the
Flush call to the decoder and on receiving the Flush done notification, reset the decoder and then report the
seek times.

The tests failed presumably due to a timing issue which was exposed by restricting the number of pending output
samples from the decoder to 1, which caused the Flush operation in the DXVA decoder to take longer to complete.

The VideoRendererBase::Flush function in the renderer process invokes the GpuVideoDecoder::Reset function. This
function internally checks if the decoder is in the draining state and keeps posting a task which would run the
GpuVideoDecoder::Reset again. The GpuVideoDecoder would never come out of the draining state after this, because
the read callback is set to NULL, which means that any ready frames would continue to live.

The DXVA decoder on Windows would never come out of the draining state as it waits for picture frames to become
available which only happens when the ready frames in the renderer are consumed.

Fix is to drop the ready frames in the GpuVideoDecoder::Reset function if we are in the draining state.

BUG=153939
R=fischman
Review URL: https://chromiumcodereview.appspot.com/11068032

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@160528 0039d316-1c4b-4281-b951-d872f2087c98

hujiajie/pa-chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,axinging/chromium-crosswalk,dednal/chromium.src,junmin-zhu/chromium-rivertrail,zcbenz/cefode-chromium,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,dednal/chromium.src,dednal/chromium.src,chuan9/chromium-crosswalk,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,dednal/chromium.src,anirudhSK/chromium,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,ondra-novak/chromium.src,dednal/chromium.src,M4sse/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,dednal/chromium.src,patrickm/chromium.src,dednal/chromium.src,anirudhSK/chromium,Jonekee/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,jaruba/chromium.src,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,Jonekee/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,dednal/chromium.src,hujiajie/pa-chromium,littlstar/chromium.src,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,ondra-novak/chromium.src,nacl-webkit/chrome_deps,ondra-novak/chromium.src,dushu1203/chromium.src,Chilledheart/chromium,nacl-webkit/chrome_deps,markYoungH/chromium.src,Chilledheart/chromium,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,markYoungH/chromium.src,fujunwei/chromium-crosswalk,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,anirudhSK/chromium,fujunwei/chromium-crosswalk,markYoungH/chromium.src,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,dushu1203/chromium.src,fujunwei/chromium-crosswalk,ltilve/chromium,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,hujiajie/pa-chromium,Jonekee/chromium.src,ltilve/chromium,ltilve/chromium,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,ChromiumWebApps/chromium,littlstar/chromium.src,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,dednal/chromium.src,jaruba/chromium.src,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,patrickm/chromium.src,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,patrickm/chromium.src,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,mogoweb/chromium-crosswalk,Jonekee/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,Chilledheart/chromium,M4sse/chromium.src,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,ondra-novak/chromium.src,nacl-webkit/chrome_deps,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,jaruba/chromium.src,anirudhSK/chromium,hujiajie/pa-chromium,markYoungH/chromium.src,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,Jonekee/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,dednal/chromium.src,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,patrickm/chromium.src,fujunwei/chromium-crosswalk,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,TheTypoMaster/chromium-crosswalk,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,patrickm/chromium.src,Chilledheart/chromium,hujiajie/pa-chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,littlstar/chromium.src,hujiajie/pa-chromium,fujunwei/chromium-crosswalk,littlstar/chromium.src,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,M4sse/chromium.src,Jonekee/chromium.src,dednal/chromium.src,markYoungH/chromium.src,axinging/chromium-crosswalk,anirudhSK/chromium,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,ltilve/chromium,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,junmin-zhu/chromium-rivertrail,chuan9/chromium-crosswalk,Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,Just-D/chromium-1,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,zcbenz/cefode-chromium,ltilve/chromium,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,Just-D/chromium-1,jaruba/chromium.src,hujiajie/pa-chromium,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,littlstar/chromium.src,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mogoweb/chromium-crosswalk,Just-D/chromium-1,dushu1203/chromium.src,dushu1203/chromium.src,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,ltilve/chromium,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,ChromiumWebApps/chromium,jaruba/chromium.src,jaruba/chromium.src,nacl-webkit/chrome_deps,anirudhSK/chromium,Chilledheart/chromium,markYoungH/chromium.src,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,ondra-novak/chromium.src,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,krieger-od/nwjs_chromium.src,M4sse/chromium.src,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,Jonekee/chromium.src,ondra-novak/chromium.src,hujiajie/pa-chromium,Just-D/chromium-1,patrickm/chromium.src,Jonekee/chromium.src,anirudhSK/chromium,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,ltilve/chromium,zcbenz/cefode-chromium,littlstar/chromium.src,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk