mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 07:26:26 +00:00
![Boris Chiou](/assets/img/avatar_default.png)
Dispatch nsRefPtr<RasterImage> to the main thread by NS_ProxyRelease to avoid RasterImage from being destructed by the DecodeJob thread. (If gMultithreadedDecoding is true.) Therefore, DiscardTracker can safely access RasterImage::Discard() by the raw pointer in DiscardTracker::Node.