Support deleting a window with tracked occlusion from...
Support deleting a window with tracked occlusion from LayerAnimationObserver::OnLayerAnimationEnded. Previously, if a window with tracked occlusion was deleted from LayerAnimationObserver::OnLayerAnimationEnded, an invalid memory access occurred in WindowOcclusionTracker::CleanupAnimatedWindows (because the window was deleted before being removed from |animated_windows_|). This CL fixes this problem by removing the Window* from |animated_windows_| in WindowOcclusionTracker::OnWindowDestroyed. Bug: 668690 Change-Id: I77749c79d72d7cebc3a77647552605c8abec3abb Reviewed-on: https://chromium-review.googlesource.com/806356 Commit-Queue: François Doray <fdoray@chromium.org> Reviewed-by:Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#521420}
Showing
Please register or sign in to comment