• Malay Keshav's avatar
    Fix seg fault crash during device scale factor change · 65840f0e
    Malay Keshav authored
    If the device scale factor of a layer changes while it is undergoing a
    transform animation, it may result in a crash. This is because during a
    device scale factor change operation, all transform animations are
    cancelled leading to a call being made to animation observers of the
    transform animation. The observers can then delete the layer or some
    other layer in the hierarchical traversal. This can result in a seg
    fault crash.
    
    Bug: 987300
    Test: Added unit test for the crash.
    Change-Id: I8842e4b39daf59e4068497a3d662fda7f921b729
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1757126Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Malay Keshav <malaykeshav@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#688360}
    65840f0e
layer.cc 50.9 KB