Make PaintWorkletInput take a WTF::HashMap
Right the PaintWorkletInput takes a PaintWorkletStylePropertyMap which is GC-ed, this doesn't seem to be thread-safe considering that the style map will eventually be passed to v8, to execute the JS paint callback. The solution here is to make PaintWorkletInput take a HashMap, which is the underline data structure of the PaintWorkletStylePropertyMap. Once we pass the PaintWorkletInpt to the worklet thread, we will build a new instance of PaintWorkletStylePropertyMap from the HashMap and give that instance to v8. Bug: 895579 Change-Id: I35cc7667fb3fc257eb2306313056bd3ec31c51f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1521027 Commit-Queue: Xida Chen <xidachen@chromium.org> Reviewed-by:Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by:
Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#644863}
Showing
Please register or sign in to comment