From c1ecc25c3e8cf0ee753ea6d069c941199f202269 Mon Sep 17 00:00:00 2001 From: qiaoning Date: Sat, 26 Oct 2024 12:45:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=93=9D=E9=BB=84=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: qiaoning --- .../src/property/rs_properties_painter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rosen/modules/render_service_base/src/property/rs_properties_painter.cpp b/rosen/modules/render_service_base/src/property/rs_properties_painter.cpp index a682058f55..0ee6a1eb60 100644 --- a/rosen/modules/render_service_base/src/property/rs_properties_painter.cpp +++ b/rosen/modules/render_service_base/src/property/rs_properties_painter.cpp @@ -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 foregroundFilter = nullptr; + if (RSProperties::IS_UNI_RENDER) { + foregroundFilter = properties.GetForegroundFilterCache(); + } else { + foregroundFilter = properties.GetForegroundFilter(); + } if (!foregroundFilter || foregroundFilter->GetFilterType() != RSFilter::FOREGROUND_EFFECT) { return; }