[impeller] disable opacity peephole due to stencil issues (flutter/engine#40497)
[impeller] disable opacity peephole due to stencil issues
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user