viz: Remove SharedBitmaps from ServerSharedBitmapManager on disconnect
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:Antoine Labour <piman@chromium.org> Reviewed-by:
kylechar <kylechar@chromium.org> Cr-Commit-Position: refs/heads/master@{#538957}
Showing
Please register or sign in to comment