!16625 purge unlocked resources

Merge pull request !16625 from zed/master
This commit is contained in:
openharmony_ci 2024-11-02 08:10:38 +00:00 committed by Gitee
commit 40295b3354
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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();