Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 832121c

Browse files
author
Jonah Williams
authored
[Impeller] remove absorb opacity limit. (#52160)
Both contents correctly check for absorb opacity so I think this is pointless.
1 parent e8debc0 commit 832121c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

impeller/entity/contents/filters/blend_filter_contents.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,7 @@ std::optional<Entity> BlendFilterContents::RenderFilter(
728728
}
729729

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

741740
if (blend_mode_ <= Entity::kLastAdvancedBlendMode) {
742-
if (inputs.size() == 1 && foreground_color_.has_value() &&
743-
GetAbsorbOpacity() == ColorFilterContents::AbsorbOpacity::kYes) {
741+
if (inputs.size() == 1 && foreground_color_.has_value()) {
744742
return CreateForegroundAdvancedBlend(
745743
inputs[0], renderer, entity, coverage, foreground_color_.value(),
746744
blend_mode_, GetAlpha(), GetAbsorbOpacity());

0 commit comments

Comments
 (0)