[impeller] disable opacity peephole due to stencil issues (flutter/engine#40497)

[impeller] disable opacity peephole due to stencil issues
This commit is contained in:
Jonah Williams
2023-03-21 13:00:05 -07:00
committed by GitHub
parent 58073ca6a5
commit fe8250240c

View File

@@ -393,13 +393,10 @@ void Canvas::SaveLayer(
auto& new_layer_pass = GetCurrentPass();
// Only apply opacity peephole on default blending.
if (paint.blend_mode == BlendMode::kSourceOver) {
new_layer_pass.SetDelegate(
std::make_unique<OpacityPeepholePassDelegate>(paint, bounds));
} else {
new_layer_pass.SetDelegate(
std::make_unique<PaintPassDelegate>(paint, bounds));
}
// TODO(jonahwilliams): reland OpacityPeepholePassDelegate once stencil checks
// are fixed.
new_layer_pass.SetDelegate(
std::make_unique<PaintPassDelegate>(paint, bounds));
if (bounds.has_value() && !backdrop_filter.has_value()) {
// Render target switches due to a save layer can be elided. In such cases