Add location logs if the collaboration resize fails probabilistically

Signed-off-by: 钱常德 <qianchangde@huawei.com>
Change-Id: I9df3de85e3d96655498aff4c6f42ad168b6cb1ee
This commit is contained in:
钱常德 2024-04-08 19:34:40 +08:00
parent bb1e17fa39
commit ac997802f9
3 changed files with 7 additions and 6 deletions

View File

@ -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();

View File

@ -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;
}

View File

@ -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);
}