mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[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:
parent
d65bd10007
commit
4868acea58
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user