Repository navigation
feat: Support Geometry.Transform - #22620
Conversation
There was a problem hiding this comment.
Pull request overview
Adds Skia backend support for Geometry.Transform so transformed geometries (notably RectangleGeometry.Transform used by SplitView) render correctly on Skia targets.
Changes:
- Introduces transformed-path helpers in
Geometry.skia.csand updatesGetGeometrySource2D()to use transformed geometry. - Updates Skia rendering code paths (
Path,GeometryGroup) to use transformed SKPaths. - Adds Skia runtime tests validating
RectangleGeometry.Transformbehavior andGetGeometrySource2D()output.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Uno.UI/UI/Xaml/Shapes/Path.skia.cs | Uses transformed filled SKPath when setting FillGeometry for Skia composition. |
| src/Uno.UI/UI/Xaml/Media/GeometryGroup.skia.cs | Applies each child geometry’s Transform when building the combined group SKPath. |
| src/Uno.UI/UI/Xaml/Media/Geometry.skia.cs | Adds helpers to apply Geometry.Transform to SKPaths and uses them for GetGeometrySource2D(). |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Media/Given_Geometry.cs | Adds Skia tests covering transformed SKPath bounds and geometry source updates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22620/wasm-skia-net9/index.html |
|
The build 195591 found UI Test snapshots differences: Details
|
|
The build 195591 found UI Test snapshots differences: Details
|
|
|
d3daa13 to
83f4f4d
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22620/wasm-skia-net9/index.html |
Code reviewFound 2 issues:
uno/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Shapes/Given_Path.cs Lines 172 to 174 in 83f4f4d uno/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Shapes/Given_Path.cs Lines 200 to 202 in 83f4f4d uno/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Shapes/Given_Path.cs Lines 237 to 239 in 83f4f4d
uno/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Shapes/Given_Path.cs Lines 171 to 174 in 83f4f4d Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22620/wasm-skia-net9/index.html |
|
The build 196962 found UI Test snapshots differences: Details
|
|
@copilot add a manual test sample with proper description that will allow verifying the changes |
|
@MartinZikmund I've opened a new pull request, #22684, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: MartinZikmund <[email protected]>
[WIP] Add support for Geometry.Transform feature
|
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22620/wasm-skia-net9/index.html |
|
The build 197130 found UI Test snapshots differences: Details
|
GitHub Issue: closes #3238
PR Type: ✨ Feature
What is the current behavior? 🤔
Not supported
What is the new behavior? 🚀
Supported on Skia
PR Checklist ✅
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.