Skia supports defining a custom memory allocator, see for example the one at skia/src/ports/SkMemory_mozalloc.cc to make it use the same allocator as Firefox when Skia is built as part of Firefox. We could do the same, calling WTF::fastMalloc() and friends.
Pull request: https://github.com/WebKit/WebKit/pull/24619
This will need a small patch in Skia, submitted here: https://skia-review.googlesource.com/c/skia/+/816036/1
<rdar://problem/123505828>
Committed 275315@main (8722ec73f50c): <https://commits.webkit.org/275315@main> Reviewed commits have been landed. Closing PR #24619 and removing active labels.