• danakj's avatar
    viz: Remove SharedBitmaps from ServerSharedBitmapManager on disconnect · 51288875
    danakj authored
    When a renderer or other viz client shuts down, the CompositorFrameSink
    may not have been notified about all the SharedBitmapIds being deleted.
    In that case the shared memory would stay in the display compositor's
    ServerSharedBitmapManager forever, leaking that memory space. So have
    each CompositorFrameSink implementation remember what SharedBitmapIds
    it has told the display compositor about, and remove them all when the
    implementation is destroyed.
    
    R=kylechar@chromium.org
    NOTRY=true
    
    Bug: 730660
    Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel
    Change-Id: Ia1aff6f9035b4713ece787f49ceb1d6c0f839c15
    Reviewed-on: https://chromium-review.googlesource.com/929989
    Commit-Queue: danakj <danakj@chromium.org>
    Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
    Reviewed-by: default avatarkylechar <kylechar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#538957}
    51288875
test_layer_tree_frame_sink.cc 10 KB