• Yi Gu's avatar
    Only mutate running worklet animations which have an updated input time · 173ad65b
    Yi Gu authored
    Previously any time any worklet animations were run, all worklet
    animations are run regardless of whether their input time has changed.
    This avoids running animations which haven't changed and reuses their
    value from the previous animation call.
    
    Note that worklet animations that are being removed still get mutated
    even though the input time doesn't change.
    
    Bug: 791279
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: I212d1da620899ab3f02fceae07eda092d2b39fdb
    Reviewed-on: https://chromium-review.googlesource.com/1101655
    Commit-Queue: Yi Gu <yigu@chromium.org>
    Reviewed-by: default avatarRobert Flack <flackr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#567712}
    173ad65b
worklet_animation_unittest.cc 13.5 KB