Fix a crash which occurs in the renderer process while attempting to read pixels off a native H/W decoded video texture.
Fix a crash which occurs in the renderer process while attempting to read pixels off a native H/W decoded
video texture.

The crash occurs because the destination SkBitmap is allocated using the visible rect on the video frame
while we try and copy the pixels from the texture using the coded rect which could be greater than the visible
rect.

Fix is to use the visible rect of the video frame in the ReadPixels callback.

Fixes bug https://code.google.com/p/chromium/issues/detail?id=174146

BUG=174146
Review URL: https://chromiumcodereview.appspot.com/12226052

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

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