commit | d48c836981d25b93de02a5117c07bebd67e3cdcf | [log] [tgz] |
---|---|---|
author | Hiroki Nakagawa <nhiroki@chromium.org> | Thu Mar 15 10:44:56 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Mar 15 10:44:56 2018 |
tree | 20c5f034673d51253bc785656140ba23af1a1a39 | |
parent | 1b4014d9b801d0a25ae721a7aeb5593016f56854 [diff] |
Worklet: Pass WorkerOrWorkletModuleFetchCoordinator via GlobalScopeCreationParams This is a preparation CL for implementing module loading on workers. WorkerOrWorkletModuleFetchCoordinator (strictly speaking, WorkletModuleResponsesMap) is a key class for module loading on worklets. It's primarily owned by Worklet class on the main thread, and its reference is passed to the WorkletGlobalScope on the worklet context thread before module loading happens. Before this CL, the reference is passed from Worklet to WorkletGlobalScope when worklet.addModule() is called in the JS context. This path is specific for worklets and not called for workers. To pass the reference in a common way, this CL passes the reference with GlobalScopeCreationParams struct that is commonly used for creating a new global scope. Design doc: https://docs.google.com/document/d/1IMGWAK7Wq37mLehwkbysNRBBnhQBo3z2MbYyMkViEnY/edit#heading=h.637avx8i5qtn Bug: 680046 Change-Id: I6dde98ef83c5fb6ae7898c63bdbecd3ebfbd36dd Reviewed-on: https://chromium-review.googlesource.com/961747 Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#543340}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .