• Majid Valipour's avatar
    [animation-worklet] Support undefined as default localTime value · 82b3d458
    Majid Valipour authored
    EffectProxy.localTime should accept undefined as its local time and treat
    that as meaning that the keyframe effect is not in effect.
    
    
    Note:
    This is a partial fix. We still need to make sure that any applied effect
    is cleared once localTime is set to undefined. This patch only ensures that
    when the initial value is not set, or set to undefined the keyframe effect
    is not applied.
    
    Test: virtual/threaded/fast/animationworklet/worklet-animation-local-time-undefined.html
    
    Bug: 870711
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: I2fdc716c331eb11a9b3eed524ac703f50a222a49
    Reviewed-on: https://chromium-review.googlesource.com/1181935Reviewed-by: default avatarStephen McGruer <smcgruer@chromium.org>
    Reviewed-by: default avatarYi Gu <yigu@chromium.org>
    Commit-Queue: Majid Valipour <majidvp@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#585849}
    82b3d458
animation_host_unittest.cc 13.3 KB