codecheck fix

Change-Id: I74fd095af518452d7fb6a9d2785f201e4ef374e0
Signed-off-by: charlielou <louchenglin1@huawei.com>
This commit is contained in:
charlielou 2024-11-05 10:09:11 +08:00
parent 9b3a1d8270
commit 918780cc92
2 changed files with 12 additions and 12 deletions

View File

@ -185,18 +185,18 @@ bool RSUiCaptureTaskParallel::Run(sptr<RSISurfaceCaptureCallback> callback)
canvas.SetDisableFilterCache(true);
canvas.SetUICapture(true);
const auto& nodeParams = nodeDrawable_->GetRenderParams();
if (nodeParams) {
Drawing::Matrix relativeMatrix = Drawing::Matrix();
relativeMatrix.Set(Drawing::Matrix::Index::SCALE_X, captureConfig_.scaleX);
relativeMatrix.Set(Drawing::Matrix::Index::SCALE_Y, captureConfig_.scaleY);
Drawing::Matrix invertMatrix;
if (nodeParams->GetMatrix().Invert(invertMatrix)) {
relativeMatrix.PreConcat(invertMatrix);
}
canvas.SetMatrix(relativeMatrix);
} else {
RS_LOGD("RSUiCaptureTaskParallel::Run: RenderParams is nullptr!");
if (UNLIKELY(!nodeParams)) {
RS_LOGE("RSUiCaptureTaskParallel::Run: RenderParams is nullptr!");
return false;
}
Drawing::Matrix relativeMatrix = Drawing::Matrix();
relativeMatrix.Set(Drawing::Matrix::Index::SCALE_X, captureConfig_.scaleX);
relativeMatrix.Set(Drawing::Matrix::Index::SCALE_Y, captureConfig_.scaleY);
Drawing::Matrix invertMatrix;
if (nodeParams->GetMatrix().Invert(invertMatrix)) {
relativeMatrix.PreConcat(invertMatrix);
}
canvas.SetMatrix(relativeMatrix);
// make sure the previous uifirst task is completed.
if (!RSUiFirstProcessStateCheckerHelper::CheckMatchAndWaitNotify(*nodeParams, false)) {

View File

@ -164,7 +164,7 @@ public:
}
void SetVmaCacheStatus(bool flag); // dynmic flag
void SetBlackList(std::unordered_set<NodeId> blackList)
void SetBlackList(const std::unordered_set<NodeId> blackList)
{
std::lock_guard<std::mutex> lock(nodeListMutex_);
blackList_ = blackList;