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

Commit 8921f0d

Browse files
committed
cleaned up clip depth a bit
1 parent 288e944 commit 8921f0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

impeller/entity/contents/filters/gaussian_blur_filter_contents.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Entity ApplyClippedBlurStyle(Entity::ClipOperation clip_operation,
227227
clipper.SetNewClipDepth(entity.GetNewClipDepth());
228228
clipper.SetTransform(entity.GetTransform() * entity_transform);
229229
result = clipper.Render(renderer, pass) && result;
230-
blur_entity.SetNewClipDepth(entity.GetNewClipDepth());
230+
blur_entity.SetClipDepth(clipper.GetClipDepth());
231231
blur_entity.SetTransform(entity.GetTransform() * blur_transform);
232232
result = blur_entity.Render(renderer, pass) && result;
233233
if constexpr (!ContentContext::kEnableStencilThenCover) {
@@ -284,6 +284,7 @@ Entity ApplyBlurStyle(FilterContents::BlurStyle blur_style,
284284
snapshot_transform);
285285
snapshot_entity.SetNewClipDepth(entity.GetNewClipDepth());
286286
result = result && snapshot_entity.Render(renderer, pass);
287+
blurred.SetClipDepth(snapshot_entity.GetClipDepth());
287288
blurred.SetTransform(entity.GetTransform() * blurred_transform);
288289
result = result && blurred.Render(renderer, pass);
289290
return result;

0 commit comments

Comments
 (0)