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

Issue 2830603003: Worklet: Move WorkletScriptLoader from MainThreadWorklet to MainThreadWorkletGlobalScope (Closed)

Created:
3 years, 8 months ago by nhiroki
Modified:
3 years, 8 months ago
CC:
chromium-reviews, shimazu+worker_chromium.org, kinuko+worker_chromium.org, blink-reviews, horo+watch_chromium.org, falken+watch_chromium.org, blink-worker-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Worklet: Move WorkletScriptLoader from MainThreadWorklet to MainThreadWorkletGlobalScope This is a preparation CL for introducing module loading for MainThreadWorklet (i.e., PaintWorklet). ThreadedWorklet is out of the scope for now. According to the "fetch and invoke a worklet script" algorithm defined in the Worklet spec[1], worklet script fetch is supposed to be conducted in the worklet global scope execution environment (i.e., WorkletGlobalScope). However, in the current implementation, the algorithm is partially implemented on Worklet class that exists in document execution environment. This doesn't match the spec. To fix it, this CL moves WorkletScriptLoader from MainThreadWorklet to MainThreadWorkletGlobalScope. This should not change the behavior. [1] https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script BUG=627945 Review-Url: https://codereview.chromium.org/2830603003 Cr-Commit-Position: refs/heads/master@{#466543} Committed: https://chromium.googlesource.com/chromium/src/+/bd57430f53d31aa3ca7c4c28f7189667feb04908

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : address review comments #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : const auto& #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -46 lines) Patch
M third_party/WebKit/Source/core/loader/WorkletScriptLoader.h View 2 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorklet.h View 1 2 3 3 chunks +7 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp View 1 2 3 2 chunks +26 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h View 1 2 4 chunks +21 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp View 1 2 3 4 4 chunks +41 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/workers/MainThreadWorkletTest.cpp View 1 2 2 chunks +15 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkletGlobalScopeProxy.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/workers/WorkletObjectProxy.h View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintWorklet.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp View 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 43 (31 generated)
nhiroki
PTAL, thanks!
3 years, 8 months ago (2017-04-19 10:28:18 UTC) #18
nhiroki
(kouhei is ooo and yhirano looks super busy) +haraken, do you think you can review ...
3 years, 8 months ago (2017-04-21 04:26:39 UTC) #23
yhirano
Sorry for the late response. I'm less busy than haraken :) https://codereview.chromium.org/2830603003/diff/60001/third_party/WebKit/Source/core/workers/WorkletObjectProxy.h File third_party/WebKit/Source/core/workers/WorkletObjectProxy.h (right): ...
3 years, 8 months ago (2017-04-21 04:43:27 UTC) #24
nhiroki
Thank you! Updated. https://codereview.chromium.org/2830603003/diff/60001/third_party/WebKit/Source/core/workers/WorkletObjectProxy.h File third_party/WebKit/Source/core/workers/WorkletObjectProxy.h (right): https://codereview.chromium.org/2830603003/diff/60001/third_party/WebKit/Source/core/workers/WorkletObjectProxy.h#newcode17 third_party/WebKit/Source/core/workers/WorkletObjectProxy.h:17: class CORE_EXPORT WorkletObjectProxy : public GarbageCollectedMixin ...
3 years, 8 months ago (2017-04-21 07:58:50 UTC) #27
nhiroki
On 2017/04/21 04:43:27, yhirano wrote: > Sorry for the late response. > I'm less busy ...
3 years, 8 months ago (2017-04-21 08:00:17 UTC) #28
yhirano
lgtm https://codereview.chromium.org/2830603003/diff/90001/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp File third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp (right): https://codereview.chromium.org/2830603003/diff/90001/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp#newcode71 third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp:71: for (auto script_loader : loader_set_) const auto&
3 years, 8 months ago (2017-04-21 08:55:51 UTC) #29
haraken
LGTM (Sorry I'm in a EMEA timezone.)
3 years, 8 months ago (2017-04-21 10:00:36 UTC) #32
nhiroki
Thank you! https://codereview.chromium.org/2830603003/diff/90001/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp File third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp (right): https://codereview.chromium.org/2830603003/diff/90001/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp#newcode71 third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.cpp:71: for (auto script_loader : loader_set_) On 2017/04/21 ...
3 years, 8 months ago (2017-04-22 02:37:14 UTC) #33
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/2830603003/130001
3 years, 8 months ago (2017-04-22 02:37:35 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/436562)
3 years, 8 months ago (2017-04-22 04:45:34 UTC) #38
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/2830603003/130001
3 years, 8 months ago (2017-04-22 06:57:27 UTC) #40
commit-bot: I haz the power
3 years, 8 months ago (2017-04-22 19:16:14 UTC) #43
Message was sent while issue was closed.
Committed patchset #5 (id:130001) as
https://chromium.googlesource.com/chromium/src/+/bd57430f53d31aa3ca7c4c28f718...

Powered by Google App Engine
This is Rietveld 408576698