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

Commit 2a3239a

Browse files
committed
Switch order for kSolid blur style in the 2-pass blur
1 parent 70d065e commit 2a3239a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

impeller/entity/contents/filters/gaussian_blur_filter_contents.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,16 +555,16 @@ Entity ApplyBlurStyle(FilterContents::BlurStyle blur_style,
555555
const ContentContext& renderer, const Entity& entity,
556556
RenderPass& pass) mutable {
557557
bool result = true;
558-
blur_entity.SetClipDepth(entity.GetClipDepth());
559-
blur_entity.SetTransform(entity.GetTransform() *
560-
blurred_transform);
561-
result = result && blur_entity.Render(renderer, pass);
562558
snapshot_entity.SetTransform(
563559
entity.GetTransform() *
564560
Matrix::MakeScale(1.f / source_space_scalar) *
565561
snapshot_transform);
566562
snapshot_entity.SetClipDepth(entity.GetClipDepth());
567563
result = result && snapshot_entity.Render(renderer, pass);
564+
blur_entity.SetClipDepth(entity.GetClipDepth());
565+
blur_entity.SetTransform(entity.GetTransform() *
566+
blurred_transform);
567+
result = result && blur_entity.Render(renderer, pass);
568568
return result;
569569
}),
570570
fml::MakeCopyable([blur_entity = blur_entity.Clone(),

0 commit comments

Comments
 (0)