RenderWidgetHostViewMac: Fix bug where casted content disappears
Simplify BrowserCompositorMac::TransitionToState, now that we no longer have a "detached" state. The new version has 3 steps - detect no-op changes and early-out - detach from the current compositor, if there is one - attach to the new compositor, if there is one This allows the code the common code between the "parent ui layer" compositor and the "has attached compositor" state. Update the comments about the states to reflect the simpler reality. Fix a bug wherein transitioning between HasOwnCompositor and UseParentLayerCompositor would briefly hide the DelegatedFrameHost and allow the frame to be inappropriately evicted. Bug: 897156 Change-Id: If6d772a8d605568c3cdab9be0843919ded5ac5e3 Reviewed-on: https://chromium-review.googlesource.com/c/1317147 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by:Saman Sami <samans@chromium.org> Reviewed-by:
Fady Samuel <fsamuel@chromium.org> Cr-Commit-Position: refs/heads/master@{#605935}
Showing
Please register or sign in to comment