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

Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,ropik/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,ropik/chromium