mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-21 12:35:22 -04:00
add surfacenode log
Signed-off-by: leafly2021 <figo.yefei@huawei.com> Change-Id: I1adb01c80b455501b8c70f3a08bc037ff249c898
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user