Repository navigation
fix(skia): Bound SKCanvasVisual damage by its size (6.8) - #24792
Conversation
|
Claude finished @MartinZikmund's task in 56s —— View job Review complete ✅
Verdict: Ship. No issues found — no inline comments posted. Findings by severity: 0 blocking, 0 non-blocking. Why this holds up:
Validation performed: Code review only (read |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24792/wasm-skia-net9/index.html |
|
The build 235997 did not find any UI Test snapshots differences. |
|
Claude finished @MartinZikmund's task in 2m 1s —— View job Review complete
Verdict: fix-first — the core Skia fix is correct and well-tested; one moderate finding on scope/root-cause, one minor test-strengthening nit. Findings by severity: 1 moderate (non-blocking, but should be tracked), 1 minor/nit. 0 blocking. Cross-cutting notes (not tied to a single line):
Validation performed: Code review only (diff inspection + reading |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24792/wasm-skia-net9/index.html |
|
The build 236178 did not find any UI Test snapshots differences. |
|
Claude finished @MartinZikmund's task in 59s —— View job Review complete
Verdict: Ship (with one previously-flagged item still outstanding, non-blocking for this fix). Findings by severity: 0 new, 0 blocking. No new inline comments posted — latest commit is a pure test strengthening with no issues. What changed since the last review round:
Cross-cutting note (previously flagged, still outstanding, not reintroduced here):
Validation performed: Code review only (diff vs merge-base, full file reads of |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The unrelated DevServer integration test should be fixed through compatible template pinning rather than disabled.
Review effort: Balanced
Findings: 1
What changed in this PR
Bounds SKCanvasVisual damage to its size, preventing full-window repaints during small Skia animations.
Changes:
- Declares size-bounded painting.
- Adds damage-region regression coverage.
- Disables a DevServer integration test due to template incompatibility.
Review result: 1 blocking issue.
| File | Description |
|---|---|
SKCanvasVisual.skia.cs |
Declares bounded painting. |
Given_Visual_Damage.cs |
Tests bounded canvas damage. |
RealAppLaunchIntegrationTests.cs |
Ignores an incompatible integration test. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24792/wasm-skia-net9/index.html |
|
The build 236892 did not find any UI Test snapshots differences. |
|
|
SKCanvasVisual clips its drawing to Size but did not declare PaintsWithinOwnSize, so the damage code fell back to the visual's whole clip. SKCanvasElement repaints every frame for Lottie, so any running ProgressRing, AnimatedIcon or AnimatedVisualPlayer damaged the entire window on every frame and defeated partial repaint. Master is unaffected: its SKCanvasVisual derives from BorderVisual. Static grid with one spinning ProgressRing, damage overlay: whole window -> the ring's box. Process CPU per 3 s: ~3.3 s -> ~1.4 s (6.5: ~0.7 s). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AzHtsXz33DcziPre7h3b9f
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AzHtsXz33DcziPre7h3b9f
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G7PsEU6gSpLZXrYuK8WWpt
17d3e4c to
b0079f3
Compare
|
Claude finished @MartinZikmund's task in 1m 27s —— View job Review complete
Verdict: Ship. 0 blocking, 0 non-blocking findings — no inline comments posted. Current diff vs Why it holds up:
Cross-cutting notes: none outstanding. The Validation performed: Code review only (diff vs |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24792/wasm-skia-net9/index.html |
|
The build 237254 did not find any UI Test snapshots differences. |
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
Head of servicing/6.8 (06d268c): adds the SKCanvasVisual damage fix (unoplatform/uno#24792) on top of the #24786 / #24788 perf fixes and #24806. Updater files aligned in the same commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>

GitHub Issue: closes #24790
PR Type:
🐞 Bugfix (performance)
What changed? 🚀
SKCanvasVisualclips its drawing to itsSizebut didn't declarePaintsWithinOwnSize. So damage tracking couldn't bound it and fell back to the visual's whole clip, which is the window.SKCanvasElementrepaints every frame for Lottie, so any runningProgressRing,AnimatedIconorAnimatedVisualPlayermade every frame a full-window repaint, defeating damage regions entirely.This PR declares
PaintsWithinOwnSize => true. Master is unaffected: itsSKCanvasVisualderives fromBorderVisual, which already declares it.Measurements 📊
Static grid of Fluent
Buttons plus one 60×60ProgressRing, Skia Win32 at 250%:DamageRegionOverlay: the whole window was damaged every frame before this PR; with it, only the ring's box is.The remaining gap against 6.5 is tracked for the rendering owner in #24791.
PR Checklist ✅
Screenshots Compare Test Runresults.Validation
Given_Visual_Damage+Given_ProgressRing+Given_AnimatedVisualPlayer+Given_AnimatedIcon+Given_SKCanvasElement+ the rest ofWindows_UI_Composition: 65/65. The new test fails without the fix (damage spills over the whole root) and passes with it.Uno.UI.Skiabuilt withoutUnoFastDevBuild(6.8), so analyzers ran.🤖 Generated with Claude Code
https://claude.ai/code/session_01AzHtsXz33DcziPre7h3b9f