mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +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
|
|
@ -49,7 +49,8 @@ DecodedSurfaceProvider::DropImageReference()
|
|||
// get evicted is holding the surface cache lock, causing deadlock.
|
||||
RefPtr<RasterImage> image = mImage;
|
||||
mImage = nullptr;
|
||||
NS_ReleaseOnMainThread(image.forget(), /* aAlwaysProxy = */ true);
|
||||
SurfaceCache::ReleaseImageOnMainThread(image.forget(),
|
||||
/* aAlwaysProxy = */ true);
|
||||
}
|
||||
|
||||
DrawableFrameRef
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue