cc::WorkletAnimationPlayer will be the compositor side equivalent of a blink::WorkletAnimation.
The cc::WorkletAnimationPlayer should extend cc:AnimationPlayer but instead of using the timeline provided time, it will use a "local time" value that eventually comes from the corresponding animator that is running in the worklet scope.
During an update cycle cc::WorkletAnimationPlayer takes its "local time" to updates its effects.
Note that unlike a regular web animation, a worklet animation owns multiple effect which means that a single blink::WorkletAnimation has a 1:N relationship with cc::WorkletAnimationPlayer. To faciliate this we may need to introduce a new blink side concept e.g., blink::CompositorWorkletAnimationPlayer.
For more info refer to AnimationWorklet design document [1]
[1] https://docs.google.com/a/chromium.org/document/d/1MdpvGtnK_A2kTzLeTd07NUevMON2WBRn5wirxWEFd2w/edit?usp=sharing
Comment 1 by bugdroid1@chromium.org
, Aug 17 2017