Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[Impeller] Add rect cutout
  • Loading branch information
bdero committed Dec 2, 2022
commit ecb1e9ac17e2f3f09488859d3189397f6255936e
5 changes: 3 additions & 2 deletions impeller/entity/contents/clip_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ Contents::StencilCoverage ClipContents::GetStencilCoverage(
}
switch (clip_op_) {
case Entity::ClipOperation::kDifference:
// This can be optimized further by considering cases when the bounds of
// the current stencil will shrink.
return {.type = StencilCoverage::Type::kAppend,
.coverage = current_stencil_coverage->Cutout(
geometry_->GetCoverage(entity.GetTransformation()).value())};
.coverage = current_stencil_coverage};
case Entity::ClipOperation::kIntersect:
return {
.type = StencilCoverage::Type::kAppend,
Expand Down