!16399 代码同步

Merge pull request !16399 from qiaoning/master
This commit is contained in:
openharmony_ci 2024-10-26 10:02:04 +00:00 committed by Gitee
commit 1e19e9d399
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -923,7 +923,12 @@ void RSPropertiesPainter::GetPixelStretchDirtyRect(RectI& dirtyPixelStretch,
void RSPropertiesPainter::GetForegroundEffectDirtyRect(RectI& dirtyForegroundEffect,
const RSProperties& properties, const bool isAbsCoordinate)
{
auto& foregroundFilter = properties.GetForegroundFilterCache();
std::shared_ptr<RSFilter> foregroundFilter = nullptr;
if (RSProperties::IS_UNI_RENDER) {
foregroundFilter = properties.GetForegroundFilterCache();
} else {
foregroundFilter = properties.GetForegroundFilter();
}
if (!foregroundFilter || foregroundFilter->GetFilterType() != RSFilter::FOREGROUND_EFFECT) {
return;
}