viz/mac: Merge surface sync and non surface sync behavior
On Mac, the browser's ui::Compositor is always the same size as the renderer's ui::Compositor. In non-viz and non-surface-sync mode, this is done by resizing the ui::Compositor to match the renderer frame size at SubmitCompositorFrame. This isn't suitable anymore, since SubmitCompositorFrame is going away. Change this so that the ui::Compositor is resized to match the surface size, at OnFirstSurfaceActivation. Add a method to DelegatedFrameHostClient to plumb this signal through to the BrowserCompositorViewMac. Also rename WasResized to OnNSViewWasResized, to be more clear. This mechanism works with and without surface synchronization enabled. Bug: 805774 Change-Id: I7a85b2e4eba8c962ef1c67446b38425637fdeb62 Reviewed-on: https://chromium-review.googlesource.com/887966 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by:Fady Samuel <fsamuel@chromium.org> Cr-Commit-Position: refs/heads/master@{#532351}
Showing
Please register or sign in to comment