StopCompositor() when swapping out the RenderWidget in RenderFrameProxy
When RenderFrameProxy::CreateFrameProxy() is called, it will 1) Make a RenderFrameProxy 2) Make a WebRemoteFrame 3) Swap out the RenderWidget on the RenderView 4) Give the WebRemoteFrame to the RenderFrameProxy This is called from RenderViewImpl::Initialize, or from an IPC from the browser via Mojo to RenderThreadImpl::CreateFrameProxy. In the latter case, it doesn't appear to remove the local main frame from the RenderViewImpl/RenderWidget. This is done by the browser destroying/detaching the main frame separately. But since detaching sets the LocalFrame to nullptr but does not SwapOut the RenderWidget, this call is required in RenderFrameProxy to do the SwapOut. At that time we should also stop the compositor. R=piman@chromium.org Change-Id: I24da561e14eea0e23e7e16d0af38f95279a27ed2 Bug: 896836 Reviewed-on: https://chromium-review.googlesource.com/c/1335661Reviewed-by:Antoine Labour <piman@chromium.org> Commit-Queue: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#608445}
Showing
Please register or sign in to comment