Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Issue 2745823002: [animation-worklet] Implement registerAnimator in worklet scope (Closed)

Created:
3 years, 9 months ago by majidvp
Modified:
3 years, 7 months ago
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, shimazu+worker_chromium.org, kinuko+worker_chromium.org, darktears, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, blink-worker-reviews_chromium.org, Eric Willigers, smcgruer
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement |registerAnimator| for AnimationWorklet |registerAnimator| creates a simple definition model after validation. It also instantiates at least one animator based on it for testing. BUG=666019 Review-Url: https://codereview.chromium.org/2745823002 Cr-Commit-Position: refs/heads/master@{#474282} Committed: https://chromium.googlesource.com/chromium/src/+/f09a33ec69c0ad5a9e59c49a9e39291d8fe795d9

Patch Set 1 #

Patch Set 2 : Improve layout test #

Patch Set 3 : remove empty array #

Total comments: 19

Patch Set 4 : feedback #

Total comments: 11

Patch Set 5 : rebase (after Blink rename) #

Patch Set 6 : Address feedback and use new animationWorklet.addModule syntax #

Total comments: 13

Patch Set 7 : Address nhiroki feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration.html View 1 2 3 4 5 1 chunk +72 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h View 1 2 3 4 5 3 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp View 1 2 3 4 5 6 2 chunks +111 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.idl View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/compositorworker/Animator.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/compositorworker/Animator.cpp View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.h View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/compositorworker/AnimatorDefinition.cpp View 1 2 3 4 5 6 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (31 generated)
majidvp
flackr@ would you mind taking a look at the approach in this patch. I am ...
3 years, 9 months ago (2017-03-13 15:02:35 UTC) #10
flackr
https://codereview.chromium.org/2745823002/diff/40001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration.html File third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration.html (right): https://codereview.chromium.org/2745823002/diff/40001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration.html#newcode58 third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration.html:58: // to complete its tasks instead of a timeout. ...
3 years, 9 months ago (2017-03-13 19:04:52 UTC) #13
majidvp
https://codereview.chromium.org/2745823002/diff/40001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration.html File third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration.html (right): https://codereview.chromium.org/2745823002/diff/40001/third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration.html#newcode58 third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/animation-worklet-animator-registration.html:58: // to complete its tasks instead of a timeout. ...
3 years, 9 months ago (2017-03-13 22:07:54 UTC) #15
ikilpatrick
https://codereview.chromium.org/2745823002/diff/40001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp File third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp (right): https://codereview.chromium.org/2745823002/diff/40001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp#newcode100 third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp:100: if (isUndefinedOrNull(animateValue)) { On 2017/03/13 22:07:53, majidvp wrote: > ...
3 years, 9 months ago (2017-03-13 22:20:34 UTC) #18
flackr
LGTM with a couple nits. https://codereview.chromium.org/2745823002/diff/40001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp File third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp (right): https://codereview.chromium.org/2745823002/diff/40001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp#newcode74 third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp:74: v8::Local<v8::Function>::Cast(ctorValue.v8Value()); On 2017/03/13 22:07:53, ...
3 years, 9 months ago (2017-03-14 18:30:29 UTC) #21
haraken
https://codereview.chromium.org/2745823002/diff/60001/third_party/WebKit/Source/modules/compositorworker/Animator.h File third_party/WebKit/Source/modules/compositorworker/Animator.h (right): https://codereview.chromium.org/2745823002/diff/60001/third_party/WebKit/Source/modules/compositorworker/Animator.h#newcode28 third_party/WebKit/Source/modules/compositorworker/Animator.h:28: RefPtr<ScriptState> m_scriptState; Is this used? https://codereview.chromium.org/2745823002/diff/60001/third_party/WebKit/Source/modules/compositorworker/Animator.h#newcode32 third_party/WebKit/Source/modules/compositorworker/Animator.h:32: // AnimationWorkletGlobalScope. ...
3 years, 9 months ago (2017-03-14 20:33:02 UTC) #23
majidvp
haraken@: PTAL. (I was on vacation which is why this took a while :) ) ...
3 years, 7 months ago (2017-05-18 21:05:03 UTC) #26
haraken
https://codereview.chromium.org/2745823002/diff/100001/third_party/WebKit/Source/modules/compositorworker/Animator.h File third_party/WebKit/Source/modules/compositorworker/Animator.h (right): https://codereview.chromium.org/2745823002/diff/100001/third_party/WebKit/Source/modules/compositorworker/Animator.h#newcode32 third_party/WebKit/Source/modules/compositorworker/Animator.h:32: ScopedPersistent<v8::Object> m_instance; Can we use the wrapper tracing? You ...
3 years, 7 months ago (2017-05-20 00:35:29 UTC) #29
nhiroki
LGTM from worklet POV https://codereview.chromium.org/2745823002/diff/100001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp File third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp (right): https://codereview.chromium.org/2745823002/diff/100001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp#newcode59 third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp:59: ExceptionState& exceptionState) { Can you ...
3 years, 7 months ago (2017-05-22 00:20:20 UTC) #30
majidvp
https://codereview.chromium.org/2745823002/diff/100001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp File third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp (right): https://codereview.chromium.org/2745823002/diff/100001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp#newcode59 third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp:59: ExceptionState& exceptionState) { On 2017/05/22 00:20:20, nhiroki (slow) wrote: ...
3 years, 7 months ago (2017-05-24 14:24:16 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2745823002/120001
3 years, 7 months ago (2017-05-24 14:26:54 UTC) #40
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/f09a33ec69c0ad5a9e59c49a9e39291d8fe795d9
3 years, 7 months ago (2017-05-24 14:32:11 UTC) #43
haraken
3 years, 7 months ago (2017-05-25 04:25:11 UTC) #44
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698