DescriptionWorklet: Implement "addModule()" algorithm for main thread worklets
This CL implements "addModule()" algorithm[1] for main thread worklets and
enables a MainThreadWorklet to host multiple MainThreadWorkletGlobalScopes as
follows:
Before this CL:
- MainThreadWorklet directly owns *one* MainThreadWorkletGlobalScope.
After this CL:
- MainThreadWorklet owns a map of WorkletGlobalScopeProxy's.
- Each WorkletGlobalScopeProxy owns a MainThreadWorkletGlobalScope.
Note that this still uses classic script loading. Following CLs will implement
module script loading.
[1] https://drafts.css-houdini.org/worklets/#dom-worklet-addmodule
BUG=627945
Patch Set 1 #
Total comments: 13
Patch Set 2 : fix layout test failures (not address review comments yet) #Patch Set 3 : rebase #Patch Set 4 : remake (still wip) #Patch Set 5 : rebase on https://codereview.chromium.org/2839123003/ #Patch Set 6 : rebase #Patch Set 7 : rebase on https://codereview.chromium.org/2851693002/ #Patch Set 8 : rebase #Depends on Patchset: Messages
Total messages: 46 (43 generated)
|