mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 13:58:40 +09:00
Issue #2073 - m-c 1651587: Make image::Image release efficient on main thread
This commit is contained in:
parent
03a4a17ccf
commit
9a39001cc3
6 changed files with 75 additions and 13 deletions
|
|
@ -54,7 +54,7 @@ Decoder::~Decoder()
|
|||
if (mImage && !NS_IsMainThread()) {
|
||||
// Dispatch mImage to main thread to prevent it from being destructed by the
|
||||
// decode thread.
|
||||
NS_ReleaseOnMainThread(mImage.forget());
|
||||
SurfaceCache::ReleaseImageOnMainThread(mImage.forget());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue