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: http://src.chromium.org/svn/trunk/src@66303 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 6b364748b698fa2c95b26e2a61c6f3f3620f99a7
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser