Mac: Show GPU widget on reload after a renderer crash.
Mac: Show GPU widget on reload after a renderer crash.

When the renderer crashes, the RenderWidgetHost object stays alive and is reused when the page is reloaded (i.e. when a new renderer process is created). However, the RenderWhidgetHostView is deleted and reallocated.

Since is_gpu_rendering_active_ wasn't reset to false,

void RenderWidgetHost::OnMsgGpuRenderingActivated(bool activated) {

  bool old_state = is_gpu_rendering_active_;

  is_gpu_rendering_active_ = activated;

  if (old_state != is_gpu_rendering_active_ && view_)
    view_->GpuRenderingStateDidChange();

}

didn't inform the new RWHV object that gpu rendering is required, and hence the gpu widget stayed hidden.

BUG=55641
TEST=Go to a gpu-accelerated page. Enter about:crash in omnibox. Reload page. No CHECK should be printed, and the page should reload fine.

Review URL: http://codereview.chromium.org/5057004

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

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