[Impeller] remove absorb opacity limit. (flutter/engine#52160)

Both contents correctly check for absorb opacity so I think this is pointless.
This commit is contained in:
Jonah Williams 2024-04-19 09:31:07 -07:00 committed by GitHub
parent d65bd10007
commit 4868acea58

View File

@ -728,8 +728,7 @@ std::optional<Entity> BlendFilterContents::RenderFilter(
}
if (blend_mode_ <= Entity::kLastPipelineBlendMode) {
if (inputs.size() == 1 && foreground_color_.has_value() &&
GetAbsorbOpacity() == ColorFilterContents::AbsorbOpacity::kYes) {
if (inputs.size() == 1 && foreground_color_.has_value()) {
return CreateForegroundPorterDuffBlend(
inputs[0], renderer, entity, coverage, foreground_color_.value(),
blend_mode_, GetAlpha(), GetAbsorbOpacity());
@ -739,8 +738,7 @@ std::optional<Entity> BlendFilterContents::RenderFilter(
}
if (blend_mode_ <= Entity::kLastAdvancedBlendMode) {
if (inputs.size() == 1 && foreground_color_.has_value() &&
GetAbsorbOpacity() == ColorFilterContents::AbsorbOpacity::kYes) {
if (inputs.size() == 1 && foreground_color_.has_value()) {
return CreateForegroundAdvancedBlend(
inputs[0], renderer, entity, coverage, foreground_color_.value(),
blend_mode_, GetAlpha(), GetAbsorbOpacity());