supplement impliment api for GetSnapshot at old framework

Signed-off-by: z30052579 <zhonglinjie@huawei.com>
This commit is contained in:
z30052579 2024-06-25 09:35:11 +08:00
parent b4746eb1f9
commit 289f0097f7

View File

@ -1400,8 +1400,8 @@ WmErrorCode WindowManagerService::RaiseToAppTop(uint32_t windowId)
std::shared_ptr<Media::PixelMap> WindowManagerService::GetSnapshot(int32_t windowId)
{
if (!Permission::IsSystemCalling() && !Permission::IsStartByHdcd()) {
WLOGFE("window raise to app top permission denied!");
return WmErrorCode::WM_ERROR_NOT_SYSTEM_APP;
WLOGFE("WindowManagerService::GetSnapshot permission denied!");
return nullptr;
}
auto task = [this, windowId]() {
return windowController_->GetSnapshot(windowId);