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

Fix visual snapshot on headless #17565

Merged
merged 4 commits into from
Nov 20, 2024
Merged

Fix visual snapshot on headless #17565

merged 4 commits into from
Nov 20, 2024

Conversation

maxkatz6
Copy link
Member

What does the pull request do?

  1. Fixes CreateCompositionVisualSnapshot method on headless platform. Compositor checks for IDrawingContextLayerWithRenderContextAffinityImpl interface, but doesn't actually check for HasRenderContextAffinity before calling CreateNonAffinedSnapshot.
  2. Add ServerVisualRenderContext.RenderChildren bool parameter.

Checklist

@maxkatz6 maxkatz6 added bug area-headless backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch labels Nov 20, 2024
@avaloniaui-bot
Copy link

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

@maxkatz6 maxkatz6 added this pull request to the merge queue Nov 20, 2024
Merged via the queue into master with commit 001c939 Nov 20, 2024
11 checks passed
@maxkatz6 maxkatz6 deleted the fix-visual-snapshot branch November 20, 2024 08:25
maxkatz6 added a commit that referenced this pull request Nov 26, 2024
* Check for HasRenderContextAffinity before calling CreateNonAffinedSnapshot

* Add ServerVisualRenderContext.RenderChildren context parameter

* Add Should_Render_To_A_Compositor_Snapshot_Capture test

* Fix xunit tests
@maxkatz6 maxkatz6 added backported-11.2.x and removed backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch labels Nov 26, 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