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

Commit 633a4d9

Browse files
committed
fixed 1/16th downsample
1 parent 7012dfb commit 633a4d9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

impeller/entity/contents/filters/gaussian_blur_filter_contents.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,15 @@ fml::StatusOr<RenderTarget> MakeDownsampleSubpass(
360360
return renderer.MakeSubpass("Gaussian Blur Filter", pass_args.subpass_size,
361361
command_buffer, subpass_callback);
362362
} else {
363-
// This assumes we don't scale below 1/8
363+
// This assumes we don't scale below 1/16.
364364
Scalar edge = 1.0;
365365
Scalar ratio = 0.25;
366-
if (pass_args.effective_scalar.x <= 0.125f) {
366+
if (pass_args.effective_scalar.x <= 0.0625f) {
367+
edge = 7.0;
368+
ratio = 1.0f / 64.0f;
369+
} else if (pass_args.effective_scalar.x <= 0.125f) {
367370
edge = 3.0;
368-
ratio = 0.0625;
371+
ratio = 1.0f / 16.0f;
369372
}
370373
ContentContext::SubpassCallback subpass_callback =
371374
[&](const ContentContext& renderer, RenderPass& pass) {

0 commit comments

Comments
 (0)