Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Skia] Fix hazeSource content changes not updating hazeEffects #476

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

chrisbanes
Copy link
Owner

@chrisbanes chrisbanes commented Jan 15, 2025

There's two related issues which this PR fixes:

  • We no longer draw graphics layers in a Snapshot.withoutReadObservation. This was done to avoid unwanted invalidations in Haze, but it has the knock-on effect that it breaks internal invalidation in the Skiko GraphicsLayer impl. Fixed by using withoutReadObservation more locally around state reads.
  • We were not observing HazeArea.contentLayer. This probably isn't the root cause of this issue, but this is more defensive for the future.

Fixes #475

@chrisbanes chrisbanes force-pushed the cb/changing-background branch from 6bba288 to 2862d89 Compare January 15, 2025 22:23
@chrisbanes chrisbanes changed the title Add test for changing background [Skia] Fix hazeSource content changes not updating hazeEffects Jan 15, 2025
@chrisbanes chrisbanes marked this pull request as ready for review January 16, 2025 09:54
@chrisbanes chrisbanes merged commit 4196500 into main Jan 16, 2025
2 checks passed
@chrisbanes chrisbanes deleted the cb/changing-background branch January 16, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Skia] Haze effect does not update correctly when hazeSource changes
1 participant