Previously the inheritance for WorkletGlobalScopes was:
core/workers/WorkerOrWorkletGlobalScope
-> core/workers/MainThreadWorkletGlobalScope
-> modules/worklet/WorkletGlobalScope
With ThreadedWorkletGlobalScope, not all global scopes will exist on the main thread.
MainThreadWorkletGlobalScope exists in core/workers as the MainThreadDebugger & friends need to access it's LocalFrame from core/
The new inheritance is:
core/workers/WorkerOrWorkletGlobalScope
-> core/workers/WorkletGlobalScope
-> core/workers/MainThreadWorkletGlobalScope
This moves WorkletGlobalScope into core and a few other classes. ThreadedWorkletGlobalScope will exist in modules and inherit from WorkletGlobalScope.
Implementation Doc:
https://docs.google.com/document/d/14hEO_BqQRBne3tBD2xghEEo02nz2csLqY4SS6x6rmjA/edit
BUG=567358
Review-Url: https://codereview.chromium.org/2029163002
Cr-Commit-Position: refs/heads/master@{#397722}
22 files changed