Skip to content

Pass original logical size to render targets - #21380

Merged
MrJul merged 3 commits into
masterfrom
feature/wd/pass-original-logical-size-to-render-targets
May 18, 2026
Merged

MrJul merged 3 commits into
masterfrom
feature/wd/pass-original-logical-size-to-render-targets

Conversation

@kekekeks

@kekekeks kekekeks commented May 18, 2026 •

Copy link
Copy Markdown
Member

This PR moves logical->physical size computation of CompositionTarget to the render thread. Original logical size the scene was rendered for is needed for Wayland.
No noticeable impact otherwise, just move from CompositingRenderer to ServerCompositionTarget, UI thread operates with logical size.

Comment thread src/Avalonia.Base/PixelSize.cs Resolved
@kekekeks
kekekeks force-pushed the feature/wd/pass-original-logical-size-to-render-targets branch from cd6b6a8 to 9439cb3 Compare May 18, 2026 12:49
@avaloniaui-bot

Copy link
Copy Markdown

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

@MrJul MrJul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MrJul
MrJul added this pull request to the merge queue May 18, 2026
Merged via the queue into master with commit be6bc06 May 18, 2026
11 checks passed
@MrJul
MrJul deleted the feature/wd/pass-original-logical-size-to-render-targets branch May 18, 2026 17:00
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