mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
import from UXP: Issue #2073 - Follow-up: Use internal Move instead of std::move for consistency (b7f217e5)
This commit is contained in:
@@ -1263,15 +1263,15 @@ SurfaceCache::MaximumCapacity()
|
||||
void SurfaceCache::ReleaseImageOnMainThread(
|
||||
already_AddRefed<image::Image> aImage, bool aAlwaysProxy) {
|
||||
if (NS_IsMainThread() && !aAlwaysProxy) {
|
||||
RefPtr<image::Image> image = std::move(aImage);
|
||||
RefPtr<image::Image> image = Move(aImage);
|
||||
return;
|
||||
}
|
||||
|
||||
StaticMutexAutoLock lock(sInstanceMutex);
|
||||
if (sInstance) {
|
||||
sInstance->ReleaseImageOnMainThread(std::move(aImage), lock);
|
||||
sInstance->ReleaseImageOnMainThread(Move(aImage), lock);
|
||||
} else {
|
||||
NS_ReleaseOnMainThread(std::move(aImage), /* aAlwaysProxy */ true);
|
||||
NS_ReleaseOnMainThread(Move(aImage), /* aAlwaysProxy */ true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user