Avoid destroying surface before the parent surface stops referencing it.
Add surface sequence numbers, which are used to schedule the destruction of surfaces. The child surface's destruction can wait on a set of sequence numbers, and the parent surface can later queue a frame that satisfies those numbers, causing the former child surface to be destroyed. Also move ownership of the SurfaceIdAllocator to the ui::Compositor, so that the surface id namespace for a compositor will stay the same across all output surfaces it ever uses. BUG=411118 Review URL: https://codereview.chromium.org/553213003 Cr-Commit-Position: refs/heads/master@{#299022}
Showing
Please register or sign in to comment