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

Issue 2254593002: [worklets] Introduce AnimationWorkletGlobalScope and ThreadedWorkletGlobalScope (Closed)

Created:
4 years, 4 months ago by ikilpatrick
Modified:
4 years, 3 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, Eric Willigers, falken, haraken, horo+watch_chromium.org, kinuko+worker_chromium.org, rjwright, rwlbuis, shans, sof, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[worklets] Introduce AnimationWorkletGlobalScope and ThreadedWorkletGlobalScope The ThreadedWorkletGlobalScope is simpler than a WorkerGlobalScope as - It doesn't need to report exceptions to the main thread they can just be logged to the console. AnimationWorkletGlobalScope doesn't have anything on it at the moment, but is used in the AnimationWorkletThreadTest (which is a clone of the CompositorWorkerThreadTest). BUG=567358 Committed: https://crrev.com/dbc47ca435e2b5aba33485cbd62a75dd3683b622 Cr-Commit-Position: refs/heads/master@{#414517}

Patch Set 1 #

Patch Set 2 : add test. #

Patch Set 3 : tests! #

Patch Set 4 : remove global listing as no console output. #

Total comments: 9

Patch Set 5 : address comments + remove import test as testing nothing yet. #

Patch Set 6 : add TODO #

Patch Set 7 : [WIP][worklets] Introduce AnimationWorkletGlobalScope. #

Patch Set 8 : . #

Patch Set 9 : Add back in compositor thread platform support. #

Patch Set 10 : Add super call to WorkletGlobalScope::dispose() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -154 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_utilities.py View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ExecutionContext.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.h View 1 2 3 4 5 6 7 1 chunk +19 lines, -23 lines 0 comments Download
A third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +63 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h View 1 2 4 1 chunk +8 lines, -11 lines 0 comments Download
A + third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp View 1 2 1 chunk +15 lines, -10 lines 0 comments Download
A + third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.idl View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp View 1 2 3 4 5 2 chunks +10 lines, -2 lines 0 comments Download
A + third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp View 1 2 3 4 5 6 7 8 4 chunks +80 lines, -105 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (34 generated)
ikilpatrick
4 years, 4 months ago (2016-08-17 01:33:55 UTC) #9
ikilpatrick
https://codereview.chromium.org/2254593002/diff/60001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp File third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp (right): https://codereview.chromium.org/2254593002/diff/60001/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp#newcode35 third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThread.cpp:35: RefPtr<SecurityOrigin> securityOrigin = SecurityOrigin::create(startupData->m_scriptURL); @mike - for the MainThreadWorkletGlobalScope ...
4 years, 4 months ago (2016-08-17 01:37:14 UTC) #10
nhiroki
lgtm https://codereview.chromium.org/2254593002/diff/60001/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp File third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp (right): https://codereview.chromium.org/2254593002/diff/60001/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp#newcode22 third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp:22: #include "wtf/RefPtr.h" Following inclusions might not be necessary. ...
4 years, 4 months ago (2016-08-17 05:56:57 UTC) #11
haraken
LGTM https://codereview.chromium.org/2254593002/diff/60001/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp File third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp (right): https://codereview.chromium.org/2254593002/diff/60001/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp#newcode33 third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp:33: { Shall we add DCHECK(!m_thread) ?
4 years, 4 months ago (2016-08-17 06:07:25 UTC) #12
flackr
Looks good, one question about how we will connect this with the CompositorProxyClient. Maybe we ...
4 years, 4 months ago (2016-08-22 18:41:14 UTC) #15
ikilpatrick
https://codereview.chromium.org/2254593002/diff/60001/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp File third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp (right): https://codereview.chromium.org/2254593002/diff/60001/third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp#newcode22 third_party/WebKit/Source/core/workers/ThreadedWorkletGlobalScope.cpp:22: #include "wtf/RefPtr.h" On 2016/08/17 05:56:57, nhiroki wrote: > Following ...
4 years, 4 months ago (2016-08-22 19:07:32 UTC) #16
flackr
lgtm
4 years, 4 months ago (2016-08-22 20:17:48 UTC) #19
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/2254593002/180001
4 years, 3 months ago (2016-08-25 20:06:13 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-08-25 20:12:45 UTC) #42
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 20:14:49 UTC) #44
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/dbc47ca435e2b5aba33485cbd62a75dd3683b622
Cr-Commit-Position: refs/heads/master@{#414517}

Powered by Google App Engine
This is Rietveld 408576698