VizDevtools: Fix bugs in OnDestroyedCompositorFrameSink
Update the expected behavior for OnDestroyedCompositorFrameSink and OnInvalidatedFrameSinkId: OnDestroyedCompositorFrameSink(element): Set the |element| to not connected, move all its children to |element_root| and remove |element| from its parents. OnInvalidatedFrameSinkId(element): free the memory of |element| and follow the same steps as OnDestroyedCompositorFrameSink. TEST=Manual, doesn't crash after connected. Change-Id: I06eb18fe14a017d50fc8209cc20251da9ed7f0a5 Reviewed-on: https://chromium-review.googlesource.com/c/1294411Reviewed-by:Sadrul Chowdhury <sadrul@chromium.org> Reviewed-by:
kylechar <kylechar@chromium.org> Reviewed-by:
Fady Samuel <fsamuel@chromium.org> Commit-Queue: Yi Xu <yiyix@chromium.org> Cr-Commit-Position: refs/heads/master@{#602420}
Showing
Please register or sign in to comment