mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 01:00:50 +00:00
!12578 修复交互优先DrawableCache GetID 空指针crash
Merge pull request !12578 from 邢暠/FixGetIDNullPointerCrash
This commit is contained in:
commit
2ee1eb9326
@ -272,12 +272,17 @@ void RSSubThread::DrawableCache(DrawableV2::RSSurfaceRenderNodeDrawable* nodeDra
|
||||
nodeDrawable->SetCacheSurfaceProcessedStatus(CacheProcessStatus::DONE);
|
||||
nodeDrawable->SetCacheSurfaceNeedUpdated(true);
|
||||
|
||||
RSSubThreadManager::Instance()->NodeTaskNotify(param->GetId());
|
||||
if (!param) {
|
||||
RS_LOGE("RSSubThread::DrawableCache param is null");
|
||||
return;
|
||||
}
|
||||
NodeId nodeId = param->GetId();
|
||||
RSSubThreadManager::Instance()->NodeTaskNotify(nodeId);
|
||||
|
||||
RSMainThread::Instance()->RequestNextVSync("subthread");
|
||||
|
||||
// mark nodedrawable can release
|
||||
RSUifirstManager::Instance().AddProcessDoneNode(param->GetId());
|
||||
RSUifirstManager::Instance().AddProcessDoneNode(nodeId);
|
||||
doingCacheProcessNum--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user