viz/mac: Fix surface invariants violation by recycled compositors
RecyclableCompositorMac owns a ui::Compositor, but the surface id generation was owned by BrowserCompositorMac. A RecyclableCompositorMac will be recycled by many different BrowserCompositorMac, and as a result, it may have a non-monotonic- increasing surface id. Scope the surface id information to RecyclableCompositorMac, and throw some of the related logic into a helper function. Bug: 772576, 817827 Change-Id: Ic4299afa5670c96b51260917a3fafb2b692b3465 Reviewed-on: https://chromium-review.googlesource.com/1046045Reviewed-by:Fady Samuel <fsamuel@chromium.org> Reviewed-by:
ccameron <ccameron@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#556342}
Showing
Please register or sign in to comment