mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-11-23 15:11:51 +00:00
commit
1e19e9d399
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user