[Cleanup] Move some code from PaintWorkletGlobalScope to PaintWorklet
This CL moves part of the code from registerPaint into a new API in PaintWorklet. The reason is that these code are working on a member that is in the PaintWorklet class, so it really should belong to the PaintWorklet class. Bug: None Change-Id: If8c0eb0390d8c64d2fedb48a1a337e6981c11f65 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1644007Reviewed-by:Yi Gu <yigu@chromium.org> Commit-Queue: Xida Chen <xidachen@chromium.org> Cr-Commit-Position: refs/heads/master@{#666093}
Showing
Please register or sign in to comment