• Stephen McGruer's avatar
    Handle non-interpolable transform animations on cc/ · cfa08298
    Stephen McGruer authored
    Previously TransformOperations::Blend would silently fail if either of the
    input matrices was non-decomposible, returning an empty TransformOperations
    list. This would end up being converted to the identity matrix for animations
    purposes, which would result in incorrect animations on the compositor.
    
    This CL fixes the logic to treat the non-decomposible cases as discrete
    animations; that is, if the progress is <= 0.5 we return the 'from' input,
    else we return the 'to' input.
    
    Bug: 821351
    Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel
    Change-Id: I82d3400ac183798cc71a1871c1f08e792e653c7a
    Reviewed-on: https://chromium-review.googlesource.com/966599
    Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
    Reviewed-by: default avatarMajid Valipour <majidvp@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#544117}
    cfa08298
keyframed_animation_curve_unittest.cc 54.4 KB