RenderWidgetHostViewMac: Remove redundant calls
The function OnBrowserCompositorSurfaceIdChanged made redundant calls to - BrowserCompositorMac::UpdateRendererLocalSurfaceIdFromChild - Every caller of this function had just updated the surface id - DelegatedFrameHost::EmbedSurface - Every caller of this function had also just called EmbedSurface In RenderWidgetHostViewMac, merge RequestRepaintForTesting and EnsureSurfaceSynchronizedForLayoutTest because they do the same thing, and make them call BrowserCompositorMac::ForceNewSurfaceId. Delete several BrowserCompositorMac functions that were only needed due to poor organization: RequestRepaintForTesting, AllocateNewRendererLocalSurfaceId, and UpdateRendererLocalSurfaceIdFromChild. Bug: 897156 Change-Id: I0bb2d6645bb8c9b4e91a469c17c1415dac7293e1 Reviewed-on: https://chromium-review.googlesource.com/c/1317032 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by:Fady Samuel <fsamuel@chromium.org> Cr-Commit-Position: refs/heads/master@{#605891}
Showing
Please register or sign in to comment