• Majid Valipour's avatar
    [Animation Worklet] Fix flaky worklet-animation-with-fill-mode.https.html · 2b037bdc
    Majid Valipour authored
    Use a more robust method for waiting on receiving local times on main
    thread when test is running with threaded compositing.
    
    Previously we would wait for one async frame and some more time to ensure
    we have received the local times on main thread. This can be flaky.
    Instead wait until local time is no longer null which means worklet has
    produced at least one frame and that frame has been synced with main.
    
    To this end WorkletAnimation now exposes its effect (similar to regular
    animations) and we use that to access the effect's local time.
    
    
    Bug: 915352
    Change-Id: I05ab560d90a55ff68e048b2c8ed19e87435dffeb
    Reviewed-on: https://chromium-review.googlesource.com/c/1496478
    Commit-Queue: Majid Valipour <majidvp@chromium.org>
    Reviewed-by: default avatarYi Gu <yigu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#636970}
    2b037bdc
TestExpectations 547 KB