Simplify use of CrossThreadPersistent in ImageBitmap::RasterizeImageOnBackgroundThread.
This captures all of the dispatching (main) thread objects in a reply callback, reducing the risk of the background thread accessing it in an unsafe way. As it happens this is fine today, mostly because the main thread heap cannot be torn down, but it's actually shorter this way, too.) Change-Id: I33021cf19d82f704c61a8f08bc89d5f7595c2aec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1799278 Commit-Queue: Jeremy Roman <jbroman@chromium.org> Commit-Queue: Kentaro Hara <haraken@chromium.org> Auto-Submit: Jeremy Roman <jbroman@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#695926}
Showing
Please register or sign in to comment