commit | 433c0c6b5e7cbc72faf696bbed34b408e7afbb6f | [log] [tgz] |
---|---|---|
author | Stephen McGruer <smcgruer@chromium.org> | Tue Apr 23 21:28:29 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Apr 23 21:28:29 2019 |
tree | d397a1a6eb8ff83a91970b2522a6663364e84e5c | |
parent | f6bbc6fc28bbf9306d7c70c15f8f7132bb781cb4 [diff] |
[OT-PW] Support DocumentPaintDefinition for threaded worklet In the current, non-threaded design, the DocumentPaintDefinition is created in the global scope and passed to CSSPaintImageGeneratorImpl where it is used directly from main-thread call-points. This doesn't work for the threaded-worklet case, where the global scope runs on the worklet thread. Instead, the PaintWorkletProxyClient is responsible for gathering and detecting incompatible definitions. Once a valid set of definitions is received from all global scopes, a thread-safe version is created (MainThreadDocumentPaintDefinition) and passed cross-thread to the PaintWorklet instance on the main thread. That main thread version can then be used for main-thread call-points (not done in this CL). Bug: 946519 Change-Id: Ic150c42ae5d93610aec1e75ebf1117500441693b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1576501 Reviewed-by: Jeremy Roman <jbroman@chromium.org> Reviewed-by: Xida Chen <xidachen@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#653375}
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 .