蓝黄同步

Signed-off-by: qiaoning <qiaoning8@h-partners.com>
This commit is contained in:
qiaoning 2024-10-26 12:45:47 +08:00
parent 4e1bf02be9
commit c1ecc25c3e

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;
}