purge unlocked resources

Signed-off-by: zed <maozijie@huawei.com>
This commit is contained in:
zed 2024-11-01 10:33:44 +08:00
parent cd368d0a37
commit 95d99bbe46

View File

@ -825,6 +825,9 @@ void RSUniRenderThread::PostClearMemoryTask(ClearMemoryMoment moment, bool deepl
this->clearMemoryFinished_ = true;
} else {
this->isDefaultCleanTaskFinished_ = true;
if (RSSystemProperties::GetRenderNodePurgeEnabled()) {
grContext->PurgeUnlockedResources(false);
}
}
RSUifirstManager::Instance().TryReleaseTextureForIdleThread();
this->exitedPidSet_.clear();