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] Don't skip setting SKCanvas.TotalMatrix when we aren't sure what the current transform is due to Save/Restore calls #15027

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

kekekeks
Copy link
Member

We are caching the last set transform in a field, but it's value could be no longer valid after SKCanvas.Restore call, since Skia pushes the entire state.

We have workarounds for that somewhere in the rendering code (don't remember where exactly, will remove once I see that line next time), but it's better to just fix it in the backend instead.

…at the current transform is due to Save/Restore calls
@maxkatz6 maxkatz6 merged commit 071d1e2 into master Mar 18, 2024
5 of 6 checks passed
@maxkatz6 maxkatz6 deleted the fixes/skia-transform-fix branch March 18, 2024 17:26
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0046305-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added the backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch label Apr 20, 2024
maxkatz6 pushed a commit that referenced this pull request Apr 20, 2024
…at the current transform is due to Save/Restore calls (#15027)
@maxkatz6 maxkatz6 added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants