mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-27 09:10:54 +00:00
codecheck fix
Change-Id: I74fd095af518452d7fb6a9d2785f201e4ef374e0 Signed-off-by: charlielou <louchenglin1@huawei.com>
This commit is contained in:
parent
9b3a1d8270
commit
918780cc92
@ -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)) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user