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

Commit 399cd87

Browse files
author
jonahwilliams
committed
handle unreachable.
1 parent 8d0e290 commit 399cd87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

impeller/entity/contents/color_source_contents.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,12 @@ class ColorSourceContents : public Contents {
175175
ContentContextOptions::StencilMode::kStencilEvenOddFill;
176176
break;
177177
default:
178+
if (force_stencil) {
179+
pass.SetCommandLabel("Stencil preparation (NonZero)");
180+
options.stencil_mode =
181+
ContentContextOptions::StencilMode::kStencilNonZeroFill;
182+
break;
183+
}
178184
FML_UNREACHABLE();
179185
}
180186
pass.SetPipeline(renderer.GetClipPipeline(options));

0 commit comments

Comments
 (0)