From b747862da8d4b22f73b55ee530b805825a37b45f Mon Sep 17 00:00:00 2001 From: Aaron Clarke Date: Thu, 30 Nov 2023 09:53:16 -0800 Subject: [PATCH] updated jonahs comment --- .../entity/contents/filters/gaussian_blur_filter_contents.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/impeller/entity/contents/filters/gaussian_blur_filter_contents.cc b/impeller/entity/contents/filters/gaussian_blur_filter_contents.cc index a6c92e2513921..7b8f01cc90ab6 100644 --- a/impeller/entity/contents/filters/gaussian_blur_filter_contents.cc +++ b/impeller/entity/contents/filters/gaussian_blur_filter_contents.cc @@ -243,6 +243,9 @@ std::optional GaussianBlurFilterContents::RenderFilter( } Scalar desired_scalar = CalculateScale(sigma_); + // TODO(jonahwilliams): If desired_scalar is 1.0 and we fully acquired the + // gutter from the expanded_coverage_hint, we can skip the downsample pass. + // pass. Vector2 downsample_scalar(desired_scalar, desired_scalar); Vector2 padded_size = Vector2(input_snapshot->texture->GetSize()) + 2.0 * padding;