Signed-off-by: Zhang Peng <zhangpeng280@huawei.com>
Change-Id: Ib23121a12e539c5bd2eb9c0233801f54e447e04b
This commit is contained in:
Zhang Peng
2022-07-11 09:25:52 +08:00
parent 3743f845c7
commit 32075e6094
+3 -2
View File
@@ -134,12 +134,13 @@ std::vector<ScreenId> AbstractScreenController::GetAllExpandOrMirrorScreenIds(
std::shared_ptr<RSDisplayNode> AbstractScreenController::GetRSDisplayNodeByScreenId(ScreenId dmsScreenId) const
{
static std::shared_ptr<RSDisplayNode> notFound = nullptr;
sptr<AbstractScreen> screen = GetAbstractScreen(dmsScreenId);
if (screen == nullptr) {
return nullptr;
return notFound;
}
if (screen->rsDisplayNode_ == nullptr) {
return nullptr;
return notFound;
}
WLOGI("GetRSDisplayNodeByScreenId: screen: %{public}" PRIu64", nodeId: %{public}" PRIu64" ",
screen->dmsId_, screen->rsDisplayNode_->GetId());