[PaintWorklet] Initial work to thread PaintWorkletGlobalScope
This CL introduces an alternative constructor for PaintWorkletGlobalScope which will make it call the threaded constructor for WorkletGlobalScope. The choice of which type to use is made in PaintWorklet::CreateGlobalScope, based on the OffMainThreadCSSPaint blink feature flag. This CL should have no behavioral change when OffMainThreadCSSPaint is not specified. Bug: 890759 Change-Id: Ie971883e605a61e13c6dcdda7ad43487d1c840bb Reviewed-on: https://chromium-review.googlesource.com/c/1273151 Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by:Xida Chen <xidachen@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#604790}
Showing
Please register or sign in to comment