New issue
Advanced search Search tips

Issue 915344 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Feature

Blocking:
issue 430155



Sign in to add a comment

Animation Worklet - Implement full AnimationEffect interface in AnimationWorklet

Project Member Reported by majidvp@chromium.org, Dec 14

Issue description

AnimationWorklet should have access to the full AnimationEffect functionality in the worklet context but it currently has only a very limited subset (i.e., setting local time).

Here is the currently exposed interface:
interface EffectProxy {
  attribute unrestricted double? localTime;
};

The interface that we eventually want is KeyframeEffect [2]. One tricky part it to figure out the best way to plumb keyframe values to the worklet for the composited animations.


As a first step we can probably start by exposing AnimationEffect interface which only include timing related properties which are available both on blink and cc.

interface AnimationEffect {
    EffectTiming getTiming();
    ComputedEffectTiming getComputedTiming();
    [RaisesException] void updateTiming(optional OptionalEffectTiming timing);

    [exposed=AnimationWorklet]
    attribute unrestricted double? localTime;
};
                                                                                


[1] https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/animationworklet/effect_proxy.idl

[2] https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/animation/keyframe_effect.idl
 
Status: Available (was: Untriaged)
Labels: Pri-3

Sign in to add a comment