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
Next Next commit
hackfix
  • Loading branch information
gaaclarke committed May 16, 2024
commit c44f4cbd9494323602a0bbf4d59d2fff154576cf
21 changes: 14 additions & 7 deletions impeller/entity/contents/filters/matrix_filter_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,20 @@ std::optional<Rect> MatrixFilterContents::GetFilterCoverage(
return std::nullopt;
}

auto& m = rendering_mode_ == Entity::RenderingMode::kSubpass
? effect_transform
: inputs[0]->GetTransform(entity);
auto transform = m * //
matrix_ * //
m.Invert(); //
return coverage->TransformBounds(transform);
auto m = inputs[0]->GetTransform(entity);
if (rendering_mode_ == Entity::RenderingMode::kSubpass) {
auto foo = Rect::MakeXYWH(0, 0, coverage->GetWidth(), coverage->GetHeight());
auto transform = m *
effect_transform * //
matrix_ * //
effect_transform.Invert(); //
return foo.TransformBounds(transform);
} else {
auto transform = m * //
matrix_ * //
m.Invert(); //
return coverage->TransformBounds(transform);
}
}

} // namespace impeller