mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-30 18:51:34 +00:00
Add location logs if the collaboration resize fails probabilistically
Signed-off-by: 钱常德 <qianchangde@huawei.com> Change-Id: I9df3de85e3d96655498aff4c6f42ad168b6cb1ee
This commit is contained in:
parent
bb1e17fa39
commit
ac997802f9
@ -220,11 +220,6 @@ void RSUniRenderVirtualProcessor::ProcessDisplaySurface(RSDisplayRenderNode& nod
|
||||
RS_LOGE("RSUniRenderVirtualProcessor::ProcessDisplaySurface: Canvas or buffer is null!");
|
||||
return;
|
||||
}
|
||||
RS_TRACE_NAME_FMT("RSUniRenderVirtualProcessor::ProcessDisplaySurface:(%f, %f, %f, %f), " \
|
||||
"rotation:%d, oriRotation:%d",
|
||||
mainWidth_, mainHeight_, mirrorWidth_, mirrorHeight_,
|
||||
static_cast<int>(node.GetScreenRotation()), static_cast<int>(node.GetOriginScreenRotation()));
|
||||
|
||||
CanvasAdjustment(node, canvasRotation_);
|
||||
|
||||
canvas_->Save();
|
||||
@ -238,6 +233,10 @@ void RSUniRenderVirtualProcessor::ProcessDisplaySurface(RSDisplayRenderNode& nod
|
||||
JudgeResolution(node);
|
||||
ScaleMirrorIfNeed(node);
|
||||
RotateMirrorCanvasIfNeed(node, canvasRotation_);
|
||||
RS_TRACE_NAME_FMT("RSUniRenderVirtualProcessor::ProcessDisplaySurface:(%f, %f, %f, %f), " \
|
||||
"rotation:%d, oriRotation:%d",
|
||||
mainWidth_, mainHeight_, mirrorWidth_, mirrorHeight_,
|
||||
static_cast<int>(node.GetScreenRotation()), static_cast<int>(node.GetOriginScreenRotation()));
|
||||
|
||||
renderEngine_->DrawDisplayNodeWithParams(*canvas_, node, params);
|
||||
canvas_->Restore();
|
||||
|
@ -1030,7 +1030,8 @@ int32_t RSScreenManager::ResizeVirtualScreen(ScreenId id, uint32_t width, uint32
|
||||
return SCREEN_NOT_FOUND;
|
||||
}
|
||||
screens_.at(id)->ResizeVirtualScreen(width, height);
|
||||
RS_LOGD("RSScreenManager %{public}s: resize virtual screen success", __func__);
|
||||
RS_LOGI("RSScreenManager %{public}s: resize virtual screen success, width:%{public}u, height:%{public}u",
|
||||
__func__, width, height);
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
@ -1055,6 +1055,7 @@ int32_t RSRenderServiceClient::ResizeVirtualScreen(ScreenId id, uint32_t width,
|
||||
return RENDER_SERVICE_NULL;
|
||||
}
|
||||
|
||||
ROSEN_LOGI("RSRenderServiceClient::ResizeVirtualScreen, width:%{public}u, height:%{public}u", width, height);
|
||||
return renderService->ResizeVirtualScreen(id, width, height);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user