#24790·uno

[Skia] SKCanvasElement animations (ProgressRing, AnimatedIcon) damage the whole window every frame on 6.7/6.8

Author: MartinZikmundCreated Sep 28, 2026Updated Sep 28, 2026
Labelstriage/untriaged

Current behavior

On 6.7 and 6.8, any running ProgressRing, AnimatedIcon, AnimatedVisualPlayer or custom SKCanvasElement damages the entire window on every frame, so damage-region (partial) repaint never kicks in while one of them animates.

SKCanvasVisual (src/Uno.UI/Graphics/SKCanvasVisual.skia.cs) clips its drawing to its Size, but doesn't declare PaintsWithinOwnSize. Visual.TryGetLocalContentBounds therefore can't bound it, and TryGetPaintDamageRegion falls back to the visual's whole accumulated clip, which is the window. Lottie invalidates the canvas every frame, so every frame is a full repaint.

With FeatureConfiguration.Rendering.DamageRegionOverlay = true, a static page with one small spinning ProgressRing shows the whole window tinted as damaged.

Expected behavior

Damage is limited to the animating element's bounds.

How to reproduce it (as minimally and precisely as possible)

  1. Skia desktop app on 6.7/6.8: a static page (for example a grid of buttons) plus one ProgressRing IsActive="True".
  2. Set FeatureConfiguration.Rendering.DamageRegionOverlay = true.
  3. The whole window is shown as damaged on every frame. Process CPU is ~3× that of 6.5 for the same page (~1.95 s vs ~0.58 s per 3 s on a quiet machine).

Workaround ️

None.

Renderer

  • Skia
  • Native

Affected platforms ️

All platforms

Uno.Sdk version (and other relevant versions)

Uno.Sdk 6.7.22 and 6.8.0-dev.51. Master is not affected: its SKCanvasVisual derives from BorderVisual, which declares PaintsWithinOwnSize.

IDE version ‍

No response

Anything else we need to know?

Found while investigating #23984. Fix: declare PaintsWithinOwnSize => true.