• jbauman's avatar
    Avoid destroying surface before the parent surface stops referencing it. · fdc3baa3
    jbauman authored
    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}
    fdc3baa3
surface_id_allocator.h 948 Bytes