mirror of
https://gitee.com/openharmony/window_window_manager
synced 2025-02-17 06:19:31 +00:00
supplement impliment api for GetSnapshot at old framework
Signed-off-by: z30052579 <zhonglinjie@huawei.com>
This commit is contained in:
parent
b4746eb1f9
commit
289f0097f7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user