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

Commit 7ffd89c

Browse files
committed
tidy and removed unnecessary check
1 parent 34d3455 commit 7ffd89c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

impeller/entity/contents/filters/gaussian_blur_filter_contents.cc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -492,14 +492,9 @@ std::optional<Entity> GaussianBlurFilterContents::RenderFilter(
492492

493493
std::optional<Rect> input_snapshot_coverage = input_snapshot->GetCoverage();
494494
Quad blur_uvs = {Point(0, 0), Point(1, 0), Point(0, 1), Point(1, 1)};
495-
if (expanded_coverage_hint.has_value() &&
496-
input_snapshot_coverage.has_value() &&
497-
// TODO(https://github.com/flutter/flutter/issues/140890): Remove this
498-
// condition. There is some flaw in coverage stopping us from using this
499-
// today. I attempted to use source coordinates to calculate the uvs,
500-
// but that didn't work either.
501-
input_snapshot.has_value() &&
502-
input_snapshot.value().transform.IsTranslationScaleOnly()) {
495+
FML_DCHECK(input_snapshot.value().transform.IsTranslationScaleOnly());
496+
if (source_expanded_coverage_hint.has_value() &&
497+
input_snapshot_coverage.has_value()) {
503498
// Only process the uvs where the blur is happening, not the whole texture.
504499
std::optional<Rect> uvs =
505500
MakeReferenceUVs(input_snapshot_coverage.value(),

0 commit comments

Comments
 (0)