add surfacenode log

Signed-off-by: leafly2021 <figo.yefei@huawei.com>
Change-Id: I1adb01c80b455501b8c70f3a08bc037ff249c898
This commit is contained in:
leafly2021
2022-05-25 18:50:54 +08:00
parent 2a6be449dd
commit 2e83aeb467
+4 -3
View File
@@ -66,11 +66,12 @@ sptr<ScreenInfo> AbstractScreen::ConvertToScreenInfo() const
void AbstractScreen::UpdateRSTree(std::shared_ptr<RSSurfaceNode>& surfaceNode, bool isAdd)
{
if (rsDisplayNode_ == nullptr) {
WLOGFE("rsDisplayNode_ is nullptr");
if (rsDisplayNode_ == nullptr || surfaceNode == nullptr) {
WLOGFE("node is nullptr");
return;
}
WLOGFI("AbstractScreen::UpdateRSTree");
WLOGFI("%{public}s surface: %{public}s, %{public}" PRIu64"", (isAdd ? "add" : "remove"),
surfaceNode->GetName().c_str(), surfaceNode->GetId());
if (isAdd) {
rsDisplayNode_->AddChild(surfaceNode, -1);