• kylechar's avatar
    viz: Fix frame eviction logic with --enable-viz. · 5868bf0a
    kylechar authored
    The FrameEvictionManager expects a response from
    DelegatedFrameHost::EvictDelegatedFrame() otherwise it will DCHECK and
    crash. Implement the correct logic in DelegatedFrameHost. There is no
    CompositorFrameSinkSupport to clear, but we clear the SurfaceLayer which
    will drop the surface reference to the evicted frame.
    
    Bug: 777881
    Change-Id: Id6725d6cdb141c668b8217419535863ecf586a17
    Reviewed-on: https://chromium-review.googlesource.com/829618
    Commit-Queue: kylechar <kylechar@chromium.org>
    Reviewed-by: default avatarFady Samuel <fsamuel@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#524717}
    5868bf0a
delegated_frame_host.cc 35.5 KB