Log 整改

Signed-off-by: whiteRiver9 <yangyichen9@huawei.com>
This commit is contained in:
whiteRiver9 2024-10-17 16:35:40 +08:00
parent 62beed4f15
commit c64b03039d
3 changed files with 9 additions and 3 deletions

View File

@ -99,12 +99,12 @@ GEMESABlurShaderFilter::GEMESABlurShaderFilter(const Drawing::GEMESABlurShaderFi
}
if (radius_ < 1) {
LOGI("GEMESABlurShaderFilter radius(%{public}d) should be [1, 8k], ignore blur.", radius_);
LOGD("GEMESABlurShaderFilter radius(%{public}d) should be [1, 8k], ignore blur.", radius_);
radius_ = 0;
}
if (radius_ > 8000) { // 8000 experienced value
LOGI("GEMESABlurShaderFilter radius(%{public}d) should be [1, 8k], change to 8k.", radius_);
LOGD("GEMESABlurShaderFilter radius(%{public}d) should be [1, 8k], change to 8k.", radius_);
radius_ = 8000; // 8000 experienced value
}

View File

@ -628,7 +628,8 @@ bool RSDrawable::FuzeDrawableSlots(const RSRenderNode& node, Vec& drawableVec)
}
}
if (bgFilterDrawable->FuzePixelStretch(node)) {
pixelStretchDrawable->SetPixelStretch(std::nullopt);
float INFTY = std::numeric_limits<float>::infinity();
pixelStretchDrawable->SetPixelStretch(Vector4f{ INFTY, INFTY, INFTY, INFTY });
return true;
}

View File

@ -785,6 +785,11 @@ void RSPropertyDrawableUtils::DrawPixelStretch(Drawing::Canvas* canvas, const st
ROSEN_LOGE("RSPropertyDrawableUtils::DrawPixelStretch pixelStretch has no value");
return;
}
if (std::isinf(pixelStretch->x_) || std::isinf(pixelStretch->y_) ||
std::isinf(pixelStretch->z_) || std::isinf(pixelStretch->w_)) {
ROSEN_LOGD("RSPropertyDrawableUtils::DrawPixelStretch skip original pixelStretch");
return;
}
auto surface = canvas->GetSurface();
if (surface == nullptr) {
ROSEN_LOGE("RSPropertyDrawableUtils::DrawPixelStretch surface null");