mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-23 15:11:51 +00:00
Log 整改
Signed-off-by: whiteRiver9 <yangyichen9@huawei.com>
This commit is contained in:
parent
62beed4f15
commit
c64b03039d
@ -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
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user