mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-01 21:45:06 -04:00
!1325 add notify memory log
Merge pull request !1325 from 邢亚楠/memory_level_dev
This commit is contained in:
@@ -2929,6 +2929,7 @@ WMError WindowImpl::SetBackdropBlurStyle(WindowBlurStyle blurStyle)
|
||||
|
||||
WMError WindowImpl::NotifyMemoryLevel(int32_t level) const
|
||||
{
|
||||
WLOGFI("[Client] Window id: %{public}u, notify memory level: %{public}d", property_->GetWindowId(), level);
|
||||
if (uiContent_ == nullptr) {
|
||||
WLOGFE("[Client] Window %{public}s notify memory level failed, because uicontent is null.", name_.c_str());
|
||||
return WMError::WM_ERROR_NULLPTR;
|
||||
|
||||
@@ -183,6 +183,7 @@ std::string WindowScene::GetContentInfo() const
|
||||
|
||||
WMError WindowScene::NotifyMemoryLevel(int32_t level) const
|
||||
{
|
||||
WLOGFI("Notify memory level: %{public}d", level);
|
||||
if (mainWindow_ == nullptr) {
|
||||
WLOGFE("Notify memory level failed, because main window is null");
|
||||
return WMError::WM_ERROR_NULLPTR;
|
||||
|
||||
Reference in New Issue
Block a user