MacViews: Use surface sync for resize
BrowserCompositorMac has historically rolled its own surface sync via the Suspend/Unsuspend functions, and compositor_suspended_lock_ in RecyclableCompositorMac. This no longer works in MacViews browser, because we no longer use RecyclableCompositorMac. Leave the Suspend/Unsuspend code in place for the non-MacViews case. Split up UpdateSurfaceAndUnsuspend - Make it just update the surface size - Call it whenever the compositor is recycled or the surface resizes - Move the AddRootLayer to TransitionToState Add a GetDeadlinePolicy method - When using surface sync, return a deadline of 8 frames (empirically works well for retina displays) - Otherwise return an immediate deadline. Bug: 840173 Change-Id: I6a1de5698e73d754ee03d9db8f4a97480c71dfb3 Reviewed-on: https://chromium-review.googlesource.com/1069834Reviewed-by:Fady Samuel <fsamuel@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#561393}
Showing
Please register or sign in to comment