Skip to content

AnimatedVisualPlayer: Port WinUI implementation - #23889

Merged
MartinZikmund merged 15 commits into
feature/breakingchangesfrom
agents/animated-visual-player-port
Aug 12, 2026
Merged

MartinZikmund merged 15 commits into
feature/breakingchangesfrom
agents/animated-visual-player-port

Conversation

@morning4coffe-dev

Copy link
Copy Markdown
Member

GitHub Issue: closes #23881

PR Type:

✨ Feature

What changed? 🚀

Ports AnimatedVisualPlayer directly from Microsoft WinUI commit 3cae15f0 for the Skia renderer.

  • Aligns playback, lifecycle, fallback content, diagnostics, dynamic sources, animation optimization, and reverse playback with WinUI.
  • Implements the required Composition AnimationController playback-rate, progress, seeking, and commit behavior.
  • Migrates Uno.UI.Lottie to IAnimatedVisualSource3/IAnimatedVisual2 and Composition-driven rendering.
  • Removes the legacy player-driven animated visual path.
  • Adds AVP, Composition, and production Lottie regression coverage.

This targets feature/breakingchanges. The public Uno-only members previously added to IAnimatedVisualSource are removed in favor of the WinUI contract.

PR Checklist ✅

Validation

  • Uno.UI.Composition.Skia build
  • Uno.UI.Skia build
  • Uno.UI.Lottie.Skia build
  • Uno.UI.UnitTests build
  • AnimatedVisualPlayer runtime tests: 27/27 passed
  • Focused Composition/Lottie unit tests: 3/3 passed
  • git diff --check

@github-actions github-actions Bot added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/automation Categorizes an issue or PR as relevant to project automation labels Jul 27, 2026
@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @morning4coffe-dev's task in 6m 58s —— View job


Review complete

  • Gather PR context and diff
  • Review core AnimatedVisualPlayer implementation (AnimatedVisualPlayer.mux.cs, AnimatedVisualPlayer.Properties.cs)
  • Review Composition layer changes (AnimationController, KeyFrameEvaluator, CompositionPropertySet, Compositor)
  • Review Lottie add-in changes (LottieVisualSourceBase, LottieVisualSource.skia.cs)
  • Review interface contracts (IAnimatedVisual2, IAnimatedVisualSource3, IDynamicAnimatedVisualSource)
  • Review test coverage (Given_AnimatedVisualPlayer.cs, unit tests)
  • Check async/cancellation discipline
  • Check cross-platform correctness
  • Check DependencyProperty patterns
  • Check code style (braces, events, generated files)
  • Post inline comments and summary

Summary

Verdict: fix-first — one blocking-thread issue; the rest are lower-severity.

Issues found

Severity File Finding
🔴 High LottieVisualSource.skia.cs:65 UI thread blocked (inline comment)
🟡 Medium KeyFrameEvaluator.cs:46 Dead ternary — both branches identical (inline comment)
🟡 Medium KeyFrameEvaluator.cs:94,104,111 O(n) LINQ scans on render hot path (see below)
🟢 Low LottieVisualSourceBase.cs null! masking genuine null return

O(n) LINQ scans in EvaluateInternal (KeyFrameEvaluator.cs:94,104,111): _keyFrames.Keys.Last(), _keyFrames.Keys.FirstOrDefault(...), and _keyFrames.Keys.LastOrDefault(...) are all O(n) linear walks over SortedDictionary.KeyCollection. _keyFrames is immutable after construction, so caching _finalKey = _keyFrames.Keys.Last() as a constructor-time field eliminates one O(n) scan per frame per animated property. The FirstOrDefault / LastOrDefault scans on the remaining two lines would benefit from a SortedList<float, T> (which supports O(log n) indexed lookups) but that's a larger refactor. At minimum, cache _finalKey.

null! return in LottieVisualSourceBase.TryCreateAnimatedVisualCore (line ~125): the method returns IAnimatedVisual2 but one branch returns null! to silence the nullable warning. The callers handle null correctly, but the return type should be IAnimatedVisual2? so the compiler can enforce null checks at every call site rather than relying on null! suppression.

What looks good

  • WinUI commit 3cae15f0 is accurately ported — field names, reentrance comments, and lifecycle semantics faithfully follow the original.
  • Events consistently use TypedEventHandler and EventHandler — no event Action anywhere.
  • DependencyProperty registrations all use nameof(), correct owner/property types, and appropriate FrameworkPropertyMetadataOptions.
  • CompositionScopedBatch.End() defers Completed via the dispatcher queue, correctly matching WinUI's cross-thread semantics and avoiding re-entrant stack overflows.
  • RequestCommitAsync now uses a real scoped-batch fence instead of Task.CompletedTask, ensuring CompleteDestroyAnimations runs after the compositor processes pending commands.
  • CompositionPropertySet.SetValue early-return for unchanged values is correct — StopAnimation still fires unconditionally before the equality check.
  • Test class correctly gates with #if __SKIA__, uses [RunsOnUIThread] at class level, includes [TestCleanup], and exercises 27 behavioral scenarios including fallback content, dynamic source reload, reverse playback, and animation optimization modes.
  • Platform file suffixes (*.skia.cs, *.reference.cs) used correctly. Generated stubs updated to "Skipping already declared" comments — no hand-edited Generated/ implementations.
  • #nullable enable is present in all new files.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 224209 found UI Test snapshots differences: skia-linux-screenshots: 67, skia-windows-screenshots: 102

Details
  • skia-linux-screenshots: 67 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DataTransferManager.png
    • Gamepad_Enumeration.png-dark
    • Buttons.png-dark
    • Buttons.png
    • EllipsemaskingEllipseGrid.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • BitmapIcon_Foreground.png
    • DisplayInformation.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • Image_AnimatedWebP.png
    • Examples.png-dark
    • Examples.png
    • Image_Margin_Large.png-dark
    • ClipboardTests.png-dark
    • DoubleImageBrushInList.png
    • Gamepad_CurrentReading.png-dark
    • ElementLevelTheme.png-dark
    • ImageIconPage.png-dark
  • skia-windows-screenshots: 102 changed over 2392

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ButtonClippingTestsControl.png-dark
    • DisplayInformation.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Gamepad_CurrentReading.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • Image_UseTargetSize.png-dark
    • Gamepad_Enumeration.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Image_AnimatedWebP.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ImageIconPage.png-dark

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 224209 has failed on Uno.UI - CI.

@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @morning4coffe-dev's task in 8m 36s —— View job


Review complete

  • Gather PR context and diff
  • Check whether previous review findings were addressed
  • Review updated files for new issues
  • Post inline comments
  • Update summary

Summary

Verdict: fix-first — the blocking-thread call and the new lock inconsistency both need to land before merge; the remainder are lower-severity.

Previous inline findings — still unresolved (inline comments already exist on the PR):

Severity File Finding
🔴 High LottieVisualSource.skia.cs:65 Task.Run(...).GetAwaiter().GetResult() blocks UI thread
🟡 Medium KeyFrameEvaluator.cs:46 Dead ternary — both branches produce Math.Max(iterationCount, 1)

New findings from this review pass:

Severity File Finding
🟡 Medium LottieVisualSourceBase.cs:230 _hasPendingAnimatedVisualInvalidation / _pendingAnimatedVisualInvalidation reset outside _stateGate lock in ClearLoadState, inconsistent with every other write site — thread-safety issue (inline comment posted)
🟢 Low LottieVisualSourceBase.cs:126 null! suppression on a non-nullable return type; change to IAnimatedVisual2? (inline comment posted)

O(n) LINQ scans — pre-existing, not in diff: _keyFrames.Keys.Last() (line 94), FirstOrDefault (line 104), LastOrDefault (line 111) in EvaluateInternal run on every compositor tick per animated property. These lines predate this PR, so no inline comment can be posted, but they should be addressed: at minimum cache _finalKey = _keyFrames.Keys.Last() at construction time to eliminate one O(n) scan per frame.

What landed in the fix commit (a1f20249) and looks correct:

  • LottieVisualSourceBase async wiring (OnAnimationDataChanged / PublishLoadFailure now properly awaited; RaiseAnimatedVisualInvalidatedAsync propagated through)
  • UIElement._elementVisualCompositor correctly moved from UIElement.cs to UIElement.crossruntime.cs — avoids the field being present on native Android/iOS where it's unused
  • RequestCommitAsyncCore in Compositor uses a scoped-batch fence (correctly defers to the next dispatcher turn)
  • Given_ProgressRing test revised to use behavioural assertions instead of a pixel-diff comparison that was inherently fragile

@unodevops

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @morning4coffe-dev's task in 4m 53s —— View job


Review complete

  • Gather PR context and diff
  • Review updated files against previous findings
  • Check new changes since last review pass (a1f20249 CI fixes, 279e8c61 security fix)
  • Post inline comments
  • Update summary

Summary

Verdict: fix-first — the 4 findings from the previous two review passes remain open. No new blocking issues were introduced by the latest two commits.

What landed in a1f20249 (CI failures fix) — all correct ✓

  • PublishLoadFailure / OnAnimationDataChanged are now properly awaited — fire-and-forget bug fixed.
  • _pendingAnimatedVisualInvalidation field initialised at declaration and reset in ClearLoadState.
  • await initialInvalidation ensures the first invalidation completes before _animationDataSubscription is assigned.
  • UIElement._elementVisualCompositor moved to UIElement.crossruntime.cs (Skia-only file) — correct platform targeting.
  • HasCompositionChildVisual in UIElement.cs + FrameworkElement.IsViewHit() delegate to it: the field defaults false, so non-Skia behaviour is unchanged (the previous return was also false).
  • Given_ProgressRing revised to behavioural assertions.

What landed in 279e8c61 (security fix) — correct ✓

  • Uri.UnescapeDataString applied before splitting segments — prevents %2F-encoded path traversal (e.g. appdata://local/..%2Fsecret).
  • Path.Combine(canonicalRoot, relativePath) + Path.GetFullPath + boundary check correctly rejects all traversal patterns verified by tracing.

Still-open inline findings (inline comments already posted)

Severity File Finding
🔴 High LottieVisualSource.skia.cs:65 Task.Run(...).GetAwaiter().GetResult() blocks UI thread
🟡 Medium LottieVisualSourceBase.cs:229 _hasPendingAnimatedVisualInvalidation / _pendingAnimatedVisualInvalidation reset outside _stateGate lock in ClearLoadState
🟡 Medium KeyFrameEvaluator.cs:46 Dead ternary — both branches identical
🟢 Low LottieVisualSourceBase.cs:125 null! suppression on non-nullable return type; change to IAnimatedVisual2?

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 224238 found UI Test snapshots differences: skia-linux-screenshots: 67, skia-windows-screenshots: 95

Details
  • skia-linux-screenshots: 67 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • BitmapIcon_Foreground.png
    • Buttons.png-dark
    • Buttons.png
    • ButtonClippingTestsControl.png-dark
    • DisplayInformation.png-dark
    • Gamepad_Enumeration.png-dark
    • DynamicFont.png
    • Gamepad_CurrentReading.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • ClipboardTests.png-dark
    • ContextRequested.png-dark
    • ContextRequested.png
    • Examples.png-dark
    • Examples.png
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • DataTransferManager.png
    • EllipsemaskingEllipseGrid.png
    • Image_AnimatedWebP.png
  • skia-windows-screenshots: 95 changed over 2392

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Gamepad_CurrentReading.png-dark
    • ImageBrushAlignmentXY.png
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Buttons.png-dark
    • Buttons.png
    • ImageIconPage.png-dark
    • ButtonClippingTestsControl.png-dark
    • ColorPickerSample.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • Focus_FocusVisual_Properties.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png

@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Jul 27, 2026
@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @morning4coffe-dev's task in 1m 38s —— View job


Review complete

  • Gather PR context and diff
  • Check whether previous review findings were addressed
  • Review latest commit (407ba68a) for new issues
  • Post inline comments
  • Update summary

Summary

Verdict: fix-first — the 4 findings from previous review passes remain open. The latest commit introduces no new issues.

Latest commit (407ba68a ci: Allow legacy animated source removals) ✓

Adds 9 entries to build/PackageDiffIgnore.xml suppressing the removal of Uno-only IAnimatedVisualSource extension methods (Update, Load, Unload, Play, Stop, Pause, Resume, SetProgress, Measure) in favour of the WinUI composition contract. The entries are correct in shape, carry accurate reason strings, and align with the feature/breakingchanges target.

Still-open findings from previous passes (inline comments already posted)

Severity File Finding
🔴 High LottieVisualSource.skia.cs:65 Task.Run(...).GetAwaiter().GetResult() blocks the UI thread during Skottie JSON parse
🟡 Medium LottieVisualSourceBase.cs:229 _hasPendingAnimatedVisualInvalidation / _pendingAnimatedVisualInvalidation reset outside _stateGate lock in ClearLoadState — inconsistent with every other write site
🟡 Medium KeyFrameEvaluator.cs:46 Dead ternary — both branches produce Math.Max(iterationCount, 1)
🟢 Low LottieVisualSourceBase.cs:125 null! suppression on non-nullable return type; change to IAnimatedVisual2?

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 224270 found UI Test snapshots differences: skia-linux-screenshots: 67, skia-windows-screenshots: 103

Details
  • skia-linux-screenshots: 67 changed over 2368

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ClipboardTests.png-dark
    • Examples.png-dark
    • Examples.png
    • BitmapIcon_Foreground.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • Buttons.png-dark
    • Buttons.png
    • Gamepad_Enumeration.png-dark
    • Image_AnimatedWebP.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • DynamicFont.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • EllipsemaskingEllipseGrid.png
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • ButtonClippingTestsControl.png-dark
    • CalendarView_Theming.png-dark
  • skia-windows-screenshots: 103 changed over 2392

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Gamepad_CurrentReading.png-dark
    • ColorPickerSample.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Image_AnimatedWebP.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • Gamepad_Enumeration.png-dark
    • Image_Stretch_None.png-dark
    • Image_UseTargetSize.png-dark
    • Buttons.png-dark
    • Buttons.png
    • DisplayInformation.png-dark
    • ImageBrushInList.png
    • Image_UseTargetSizeLate.png-dark

@github-actions github-actions Bot added the platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform label Jul 29, 2026
MartinZikmund and others added 3 commits August 2, 2026 23:48
Setting AnimationController.Progress on a controller that has NOT been
explicitly paused now re-anchors the animation WITHOUT pausing it, so a
negative PlaybackRate keeps driving from the new position. This is how
AnimatedVisualPlayer starts a reverse play at the end (controller.Progress=1).
Scrubbing (paused controller) still holds as before. Adds KeyFrameEvaluator
.SeekTo and CompositionObject.SeekAnimationProgress.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012Y55hpyP9BgSDg6hGBGJpZ
LottieGen reconfigures a single reusable ExpressionAnimation (different
Expression + reference parameters) and starts it on many targets — e.g.
binding each shape's TrimStart/TrimEnd to "Min/Max(my.TStart,my.TEnd)"
where "my" is that shape's own geometry. Uno shared the instance, so every
target ended up bound to the last-configured reference parameters and its
trim never tracked its own TStart/TEnd. Shapes with a narrow initial trim
(e.g. the "L" curl in the LottieFiles logo, initial trim [0.8,0.81]) stayed
invisible.

Clone the ExpressionAnimation when it is started on a target (WinUI
snapshots animation state on StartAnimation); keyframe animations keep
sharing the instance. Adds a regression test.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012Y55hpyP9BgSDg6hGBGJpZ
@github-actions

github-actions Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @morning4coffe-dev's task in 5m 50s —— View job


Review complete

  • Gather PR context and diff
  • Check whether previous review findings were addressed
  • Review new changes since last review pass (4c89bb2c, 306532f2, 481adad9)
  • Post inline comments (no new blockable lines in diff context)
  • Update summary

Summary

Verdict: ship — all four previously open findings are resolved in commit 481adad9. The two new commits introduce no new issues.

Previous findings — all resolved ✓

Finding Status
🔴 LottieVisualSource.skia.cs:65 — Task.Run(...).GetResult() blocks UI thread ✅ Fixed: CreateAnimation called directly, no Task.Run wrapper
🟡 LottieVisualSourceBase.cs:229 — lock inconsistency on _hasPendingAnimatedVisualInvalidation ✅ Fixed: reset moved inside lock (_stateGate) in ClearLoadState
🟡 KeyFrameEvaluator.cs:46 — dead ternary, both branches identical ✅ Fixed: simplified to _iterationCount = Math.Max(iterationCount, 1)
🟢 LottieVisualSourceBase.cs:125 — null! suppression on non-nullable return type ✅ Fixed: return type changed to IAnimatedVisual2?

New commits reviewed

4c89bb2c feat(composition): Support reverse playback via AnimationController — Correctly refactors AnimationController to hold a List<(Owner, PropertyName, Animation)> instead of a single association. Initialize propagates _playbackRate, _isPaused, and _progress to each newly-added animation. Progress.set dispatches SeekAnimationProgress (running) vs SeekAnimation (paused) correctly. Animation_Stopped removes by reference in reverse-index order and clears _progress when the last association is removed. The new tests in Given_AnimationController.cs cover the multi-association scrub, playback-rate round-trip, and running-controller reposition scenarios.

306532f2 fix(composition): Snapshot ExpressionAnimation per target on start — CompositionObject.StartAnimation now calls animation.CloneAnimation() before registration; ExpressionAnimation overrides to return a fresh instance with the expression string and all reference/scalar parameters copied; _parsedExpression is left null on the clone and parsed on the first Start() call, which is correct. Keyframe animations return this (shared is safe). New regression test in Given_ExpressionAnimation.cs verifies independent evaluation after reconfiguration.

Observations (non-blocking, outside diff context — inline comments not possible)

  • CompositionObject.cs:65 — The TODO comment "Clone the animation object…" is now implemented four lines below. Can be cleaned up opportunistically.
  • KeyFrameEvaluator.cs:94,104,111 — _keyFrames.Keys.Last(), FirstOrDefault, LastOrDefault are O(n) walks on every compositor tick per animated property. _keyFrames is immutable after construction, so caching _finalKey = _keyFrames.Keys.Last() at construction time would eliminate one O(n) call per frame at no additional cost. These lines predate the latest sync commits so no inline comment is possible.

@morning4coffe-dev

Copy link
Copy Markdown
Member Author

Reconciled and published at 481adad92aea37e5e722e6d4ef7dc4fa41695821.

Reconciliation

  • Merged the current feature/breakingchanges target normally in a8f448d405; target-owned conflict resolutions were retained.
  • Integrated Martin's reverse-playback work as 4c89bb2c37 and per-target ExpressionAnimation snapshots as 306532f247.
  • Martin's alignment, fallback, and Source3 changes were skipped where the newer port already contained the same behavior.
  • Addressed and resolved all four review threads in 481adad92a: removed the dead evaluator ternary, made visual Try-create nullability honest, moved pending-invalidation resets under _stateGate, and confirmed the reconciled Skottie path no longer contains the reviewed Task.Run(...).GetAwaiter().GetResult() call.

Breaking API alignment

The removal of the nine Uno-only IAnimatedVisualSource lifecycle methods is intentional WinUI 3 alignment. All nine removals are listed in build/PackageDiffIgnore.xml, and the final subject is marked with ! so Conventional Commit tooling treats the branch as breaking.

Validation

  • Strict warnings-as-errors builds passed for Uno.UI.Composition.Skia, Uno.UI.Skia, and Uno.UI.Lottie.Skia.
  • The net10 Skia runtime host built successfully using local NetCurrent=net10.0 / NetPrevious=net9.0 overrides because this machine does not have the target branch's .NET 11 SDK.
  • Given_AnimationController: 3/3 passed.
  • Given_AnimatedVisualPlayer: 27/27 passed.
  • Post-review combined rerun: 30/30 passed.
  • Worktree is clean, conflict-marker scan is clean, and the remote head matches the local head exactly.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 225410 found UI Test snapshots differences: skia-linux-screenshots: 74, skia-windows-screenshots: 317

Details
  • skia-linux-screenshots: 74 changed over 2392

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • DamageRegion_ShadowChildPaintingCaster.png-dark
    • DynamicFont.png-dark
    • DisplayInformation.png-dark
    • Buttons.png
    • DoubleImageBrushInList.png-dark
    • ContextRequested.png-dark
    • ContextRequested.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • Image_UseTargetSizeLate.png-dark
    • Image_UseTargetSizeLate.png
    • ClipboardTests.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • Gamepad_Enumeration.png-dark
    • ImageBrush_Stretch.png
    • Image_Margin_Large.png
    • ImageBrushWithRotateTransform.png
  • skia-windows-screenshots: 317 changed over 2392

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Battery.png-dark
    • BasicAcrylicBrushTest2.png-dark
    • BitmapIcon_Generic.png-dark
    • BorderImageBrush.png-dark
    • ContentPresenter_Template.png-dark
    • ContentPresenter_Template.png
    • EllipsemaskingEllipseGrid.png-dark
    • EllipsemaskingEllipseGrid.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • FocusTrapRepro.png-dark
    • FocusTrapRepro.png
    • ImageSourceUrlNoScheme.png-dark
    • ImageSourceUrlNoScheme.png
    • ImageSourceUrlMsAppDataScheme.png-dark
    • ImageSourceUrlMsAppDataScheme.png
    • ImageSourceUrlMsAppxScheme.png-dark
    • ImageSourceUrlMsAppxScheme.png
    • BitmapIcon_Foreground.png-dark
    • ContextRequested.png-dark

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @morning4coffe-dev's task in 7m 47s —— View job


Review complete

  • Gather PR diff vs base branch
  • Identify new commits since last review pass (96f14748, df5462e8)
  • Check previous findings still resolved
  • Review AnimationController multi-association pattern
  • Review ExpressionAnimation.CloneAnimation() per-target snapshot
  • Review CompositionObject Seek/Pause/Resume discipline
  • Review test coverage (Given_AnimationController, CompositionPropertySetTests)
  • Post inline comment
  • Update summary

Summary

Verdict: ship — all four previously open findings remain resolved; the two new commits introduce one low-severity inconsistency (inline comment posted) and no new blocking issues.

New commits reviewed

96f14748 chore: merge latest breaking changes — Merge from feature/breakingchanges. Only PR-touching change: LottieVisualSourceBase.cs line 548 changes IsLocalResource() → IsMsAppx(), narrowing the URI check to the ms-appx:// scheme only. This is correct alignment with the WinUI StorageFile.GetFileFromApplicationUriAsync contract, which expects ms-appx:// URIs. No new issues.

df5462e8 test(composition): use current pointer type — Migrates Windows.UI.Input.PointerPoint → Microsoft.UI.Input.PointerPoint in CompositionPropertySetTests.cs. Correct WinUI 3 namespace migration.

New inline finding

Severity File Finding
🟢 Low KeyFrameAnimation.cs:106 SeekTo uses null-safe ?. while every other method in the class uses null-asserting ! — silent no-op on null where Seek fails loudly; align to !

What looks good in this pass

  • AnimationController multi-association list (List<(Owner, PropertyName, Animation)>) is correct. Initialize propagates _playbackRate, _isPaused, and _progress to each new animation in the right order, ensuring all associated animations stay in sync.
  • ExpressionAnimation.CloneAnimation() correctly copies Expression, all parameter dictionaries, and Target to the clone; _parsedExpression is intentionally left null (parsed on first evaluation). Keyframe animations return this (sharing is safe since they're immutable after construction).
  • PauseAnimation / ResumeAnimation guards (animation.IsPaused early-return) eliminate double-pause/double-resume without breaking the compositor's registration bookkeeping.
  • SeekAnimation (paused scrub) vs SeekAnimationProgress (running reposition) distinction is clear and exercised by When_Progress_Set_On_Running_Controller_Repositions.
  • Animation_Stopped removes in reverse-index order — correct in-place removal from a List<T>.
  • Tests gate correctly with #if !__SKIA__ [Ignore(…)] (the [TestMethod] is always emitted; only the [Ignore] is conditional, so discovery is unaffected on non-Skia platforms).

Persistent non-blocking observations (not in diff — inline comments not possible)

  • CompositionObject.cs:65 — stale TODO "Clone the animation object…"; the implementation is already four lines below it at line 79.
  • KeyFrameEvaluator.cs:94,104,111 — _keyFrames.Keys.Last(), FirstOrDefault, LastOrDefault are O(n) walks per compositor tick per animated property; caching _finalKey at construction would eliminate one scan per frame at zero runtime cost.

@github-actions

Copy link
Copy Markdown
Contributor

WinAppSDK sync generator drift detected on df5462e

The Uno.WinAppSDKSyncGenerator produced changes that are not committed on this PR.

To apply automatically (PRs from branches in this repo only): comment /apply-sync-gen on this PR and a bot will push chore: Sync generator run to the head branch.

To apply manually (required for PRs from forks):

  1. Download the sync-generator-patch artifact from this run.
  2. In your local checkout of the PR branch:
    git apply sync-generator.patch
    git add -A
    git commit -m "chore: Sync generator run"
    git push
    

Or re-run the generator locally on Windows via build\run-api-sync-tool.cmd.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 227161 found UI Test snapshots differences: skia-linux-screenshots: 76, skia-windows-screenshots: 105

Details
  • skia-linux-screenshots: 76 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • Attributed_text_FontSize_Changing.png
    • ExpanderColorValidationPage.png-dark
    • Buttons.png-dark
    • Buttons.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ColorPickerSample.png
    • DisplayInformation.png-dark
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • ImageIconPage.png-dark
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • ElementLevelTheme.png-dark
  • skia-windows-screenshots: 105 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • BasicAcrylicBrushTest.png-dark
    • ContentPresenter_TextProperties.png-dark
    • CustomTitleBar_Tests.png-dark
    • DragDrop_TestPage.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ImageIconPage.png-dark
    • ClipboardTests.png-dark
    • Image_Placeholder.png-dark
    • Attributed_text_FontSize_Changing.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Examples.png
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @morning4coffe-dev's task in 3m 54s —— View job


Review complete

  • Gather PR context and new commits since last review (df5462e8)
  • Check whether previous finding (KeyFrameAnimation.cs:106) was addressed
  • Review chore: sync generated APIs commit (8f26be34)
  • Post inline comments (no new postable findings)
  • Update summary

Summary

Verdict: ship — the new commit is correct; the single low-severity finding from the previous pass remains open (inline comment already posted).

New commit reviewed

8f26be34 chore: sync generated APIs — Output of the /apply-sync-gen bot action. Two patterns are cleaned up throughout the generated files:

  1. #if false || false → #if false (simplification, semantically identical).
  2. #if __SKIA__ || __NETSTD_REFERENCE__ → #if __SKIA__ (drops the Reference platform from stubs that no longer need a declaration there, now that LottieVisualSource.reference.cs covers the Reference target).

Specific members moved to "Skipping already declared" (correctly, since hand-authored partials now own them): AnimationController.{MaxPlaybackRate, MinPlaybackRate, PlaybackRate}, Compositor.CreateAnimationController(), AnimatedVisualPlayer.{AnimationOptimizationProperty, DiagnosticsProperty, AnimationOptimization, Diagnostics}, IAnimatedVisual2.{CreateAnimations, DestroyAnimations}, IAnimatedVisualSource3.TryCreateAnimatedVisual, IDynamicAnimatedVisualSource.AnimatedVisualInvalidated. All correct — no hand-authored Generated/ edits, just generator bookkeeping.

The IAnimatedVisualSource generated stub narrowing from __SKIA__ || __NETSTD_REFERENCE__ to __SKIA__ is also correct: LottieVisualSource.reference.cs (added in this PR) handles the Reference target separately, so the Reference platform no longer needs the WinUI TryCreateAnimatedVisual stub emitted here.

Still-open finding (inline comment already posted in prior pass)

Severity File Finding
🟢 Low KeyFrameAnimation.cs:106 SeekTo uses null-safe ?. while every other method uses ! — silent no-op vs loud failure asymmetry; align to _keyframeEvaluator!.SeekTo(progress)

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 227181 found UI Test snapshots differences: skia-linux-screenshots: 76, skia-windows-screenshots: 145

Details
  • skia-linux-screenshots: 76 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ExpanderColorValidationPage.png-dark
    • Examples.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • ContextRequested.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Gamepad_Enumeration.png
    • Focus_FocusVisual_Properties.png
    • Image_Margin_Large.png
    • Attributed_text_FontSize_Changing.png
  • skia-windows-screenshots: 145 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png
    • Contacts_Pick.png-dark
    • Contacts_Pick.png
    • DisplayInformation.png-dark
    • ButtonClippingTestsControl.png-dark
    • Battery.png
    • Battery.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ContentPresenter_NativeEmbedding_Android_FillType.png
    • ContentPresenter_TextProperties.png-dark
    • DataTemplate_Update_Sample.png-dark
    • ContentPresenter_TextProperties.png
    • ContentPresenter_NativeEmbedding_ZIndex.png
    • DataTemplate_Update_Sample.png
    • CustomTitleBar_Tests.png-dark

@morning4coffe-dev

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 227181 has failed on Uno.UI - CI.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 227184 found UI Test snapshots differences: skia-linux-screenshots: 76, skia-windows-screenshots: 120

Details
  • skia-linux-screenshots: 76 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ExpanderColorValidationPage.png-dark
    • Attributed_text_FontSize_Changing.png
    • ContextRequested.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
    • DisplayInformation.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ImageIconPage.png-dark
    • Buttons.png-dark
    • Buttons.png
    • ColorPickerSample.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
  • skia-windows-screenshots: 120 changed over 2366

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • ColorPickerSample.png
    • DoubleImageBrushInList.png-dark
    • Examples.png
    • DragDrop_TestPage.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • CustomTitleBar_Tests.png-dark
    • Attributed_text_FontSize_Changing.png
    • Border_CornerRadius_Gradient.png-dark
    • ButtonClippingTestsControl.png-dark
    • ElevationView_Clipping.png-dark
    • Buttons.png
    • ContentPresenter_TextProperties.png-dark
    • ContentPresenter_TextProperties.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png

@mergify

mergify Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@MartinZikmund
MartinZikmund merged commit eb88258 into feature/breakingchanges Aug 12, 2026
65 checks passed
@MartinZikmund
MartinZikmund deleted the agents/animated-visual-player-port branch August 12, 2026 14:20
MartinZikmund added a commit to ramezgerges/uno that referenced this pull request Sep 21, 2026
SKCanvasElement.CreateElementVisual() passed Compositor.GetSharedCompositor()
to the branch's neutral SKCanvasVisual instead of the per-element
ElementVisualCompositor, reverting a fix for AnimatedVisualPlayer CI
failures (master a1f2024). Ported to the branch's neutral type.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XsQppKuZgijApgJxaTZt81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure area/code-generation Categorizes an issue or PR as relevant to code generation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform platform/x11 🐧 Categorizes an issue or PR as relevant to X11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants