diff --git a/engine/src/flutter/impeller/aiks/picture.cc b/engine/src/flutter/impeller/aiks/picture.cc index 77f7fa8dbcf..64ea0c19aea 100644 --- a/engine/src/flutter/impeller/aiks/picture.cc +++ b/engine/src/flutter/impeller/aiks/picture.cc @@ -66,17 +66,15 @@ std::shared_ptr Picture::RenderToTexture( /*mip_count=*/1, "Picture Snapshot MSAA", // label RenderTarget:: - kDefaultColorAttachmentConfigMSAA, // color_attachment_config - std::nullopt // stencil_attachment_config + kDefaultColorAttachmentConfigMSAA // color_attachment_config ); } else { target = render_target_allocator.CreateOffscreen( *impeller_context, // context size, // size /*mip_count=*/1, - "Picture Snapshot", // label - RenderTarget::kDefaultColorAttachmentConfig, // color_attachment_config - std::nullopt // stencil_attachment_config + "Picture Snapshot", // label + RenderTarget::kDefaultColorAttachmentConfig // color_attachment_config ); } if (!target.IsValid()) { diff --git a/engine/src/flutter/impeller/entity/contents/content_context.h b/engine/src/flutter/impeller/entity/contents/content_context.h index 6d4fc902986..d38df9ae03b 100644 --- a/engine/src/flutter/impeller/entity/contents/content_context.h +++ b/engine/src/flutter/impeller/entity/contents/content_context.h @@ -408,7 +408,7 @@ class ContentContext { /// // TODO(bdero): Remove this setting once StC is fully de-risked // https://github.com/flutter/flutter/issues/123671 - static constexpr bool kEnableStencilThenCover = false; + static constexpr bool kEnableStencilThenCover = true; #if IMPELLER_ENABLE_3D std::shared_ptr GetSceneContext() const;