Skip to content

feat!: pluggable drawing backend abstraction (WebGPU renderer + managed engines) - #24153

Merged
ramezgerges merged 1024 commits into
unoplatform:masterfrom
ramezgerges:feature/drawing-backend-abstraction
Sep 23, 2026
Merged

ramezgerges merged 1024 commits into
unoplatform:masterfrom
ramezgerges:feature/drawing-backend-abstraction

Conversation

@ramezgerges

Copy link
Copy Markdown
Contributor

GitHub Issue: closes unoplatform/RnD#41

PR Type:

✨ Feature

What changed? 🚀

Introduces a pluggable drawing-backend abstraction for the Skia rendering targets, so the renderer and the content engines behind it are selectable seams instead of a hard SkiaSharp dependency. Design doc: doc/uno-drawing-backend-abstraction.md.

Architecture

  • Drawing SPI (Uno.UI.Composition.Drawing): backend-neutral contracts — IGraphicsProvider/IDrawingFactory (renderer negotiation over host-provided swapchain contexts), IGeometry/IGeometryFactory, IFontProvider, IImageEncoderDecoder, ISvgRenderer, retained command lists (IRenderRecord) and damage-region plumbing.
  • Skia backend (Uno.UI.Composition.Skia): the existing SkiaSharp renderer, repackaged as one registerable backend and still the default when referenced.
  • WebGPU backend (Uno.UI.Composition.WebGpu / .Init): a new renderer over wgpu-native (Dawn on the browser) — analytic rounded-rect/ring clips evaluated in-shader, stencil-mask path clips, frame-solid coalescing, damage-clipped presents. Opt-in via UNO_WEBGPU=1, backend/present-mode knobs via UNO_WEBGPU_BACKENDS / UNO_WEBGPU_PRESENT.
  • Managed (SkiaSharp-free) engines (Uno.UI.Composition.Managed): geometry (flatten/combine/stroke), font loading/shaping, image decode, and SVG — enabling fully SkiaSharp-free heads (UnoDrawingBackendSkia=false).
  • Host-builder seams: UnoPlatformHostBuilder.GraphicsBackend(...)/.GeometryFactory(...)/.FontProvider(...)/.ImageEncoderDecoder(...)/.SvgRenderer(...), with Skia light-up preserved when the Skia backend is referenced.

Measured (Intel UHD 620, maximized 1920×1009, damage regions disabled so every frame pays full render cost)

  • SamplesApp Performance_1000ButtonsContinuousRendering n=1000, uncapped: WebGPU 57.8 avg / 50.2 min fps vs Skia 51.7 / 5.3.
  • SamplesApp all-samples sweep (WebGPU, 699 samples measured): median 60.0 fps, 94% ≥ 55 fps.
  • Uno.Gallery all-samples sweep (theme stack rebuilt against this branch): WebGPU median 60.1 fps across 91 samples, 81 ≥ 57 fps; remaining deficits vs Skia are shadow/blur-heavy pages (ShadowContainer/FAB) and a few clipboard/picker samples, tracked for follow-up.
  • WebGPU lane runs with no SkiaSharp.dll/libSkiaSharp loaded (managed fonts/images/SVG/geometry).

PR Checklist ✅

Breaking changes

This branch intentionally carries coordinated breaking changes; libraries compiled against earlier packages need a rebuild:

  • DependencyObject becomes a class on Skia targets (was an interface). Prebuilt libraries with types directly implementing the old interface fail with TypeLoadException until recompiled (validated: Uno.Toolkit, Uno.Themes/Material/Cupertino rebuild with minor source fixes — generic constraints where T : class, DependencyObject → where T : DependencyObject).
  • The Lottie player is folded into Uno.UI (Uno.UI.Lottie assembly removed); a type-forwarding facade restores binary compatibility for existing consumers and can be shipped if needed.
  • Style.RegisterDefaultStyleForType(Type, IXamlResourceDictionaryProvider, bool isNative) was removed; this PR restores it as a binary-compat shim (native registrations are ignored).
  • Skia-target TFMs move to net10.0/net11.0 (net9.0 dropped).

Validation

  • Runtime: full runtime-test suite on Skia Desktop under the CI recipe; per-fix baseline comparisons against eb88258652; Given_Border re-run after the shared clip changes (27 tests, 0 failures).
  • Runtime (hardware): benchmark matrix and all-samples sweeps above, on a physical Intel UHD 620 machine (Vulkan for WebGPU, OpenGL for Skia).
  • Known open items on the WebGPU lane are tracked for follow-up: flyout-over-scene full re-encode (damage-AABB op culling), shadow/blur pass cost, a sample-navigation memory leak under continuous full repaint, and layout-exception robustness of the render loop.

🤖 Generated with Claude Code

@github-actions github-actions Bot added platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform area/solution-templates Categorizes an issue or PR as relevant to the solution template area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/code-generation Categorizes an issue or PR as relevant to code generation area/build Categorizes an issue or PR as relevant to build infrastructure area/automation Categorizes an issue or PR as relevant to project automation kind/documentation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk platform/x11 🐧 Categorizes an issue or PR as relevant to X11 labels Aug 21, 2026
@ramezgerges
ramezgerges changed the base branch from master to feature/breakingchanges August 21, 2026 13:27
@ramezgerges

Copy link
Copy Markdown
Contributor Author

Perf session results (samples-list scroll + WASM investigation)

Fixes landed (each correctness-gated on the clip-heavy runtime batch, unchanged at its 61/72 baseline — all 10 failures pre-existing and bisect-confirmed):

Commit Change
0af4b939a5 Session-clipped recordings stamp instead of full-rebuilding (rounded-container list items)
62f2bb2708 Restamps rewrite clip uniforms in place — no per-frame bind-group churn
440f1c0477 DamageRegion accumulates bounded rects, not per-contribution geometry booleans
ad5e6f53bc ManagedContour segments as concrete arrays (Mono AOT can't compile value-type array-interface wrappers)
06c8477351 Plain-rect clips ride a dedicated ClipU slot; per-op scissors collapse 1333→1/frame
39a28a2f23+b252582c78 Chunked render bundles (32-op, replay-run coalescing): 4000→100 encoder calls/frame
0485299ed1 Per-replay ops-span reuse across frames (guards: entry identity, stamp freshness, dup exclusion, bg-cache LRU touch)

Measured on UHD 620 (heat-soaked laptop; cold numbers expected higher):

Scenario Before After
Desktop samples-list scroll 3–7 fps 58–64 fps
Desktop buttons n=500, full repaint — 60 fps (vsync-locked, MSAA 4x)
WASM samples-list scroll 0.3 fps ~42 fps (now composition-walk-bound)
WASM buttons n=500, full repaint 5.8 fps 52–57 fps (now rAF/present-bound)

Root causes, in order of discovery: rounded session clips excluded recordings from the fast stamp paths; DamageRegion.Union's geometry booleans were 60–80% of WASM scroll CPU (found via CDP sampling profile, symbolized with WasmEmitSymbolMap); per-op scissors and per-frame re-encoding dominated the WASM emit (~4000 JS-boundary calls/frame).

Also documented for follow-up: pre-existing WebGPU failures (ellipse-clip+translate ×6, stroke-thickness 1px ×2), mono 10.0.11's AOT profiler crashing at runtime init (profile-guided AOT blocked), and the WASM composition-walk cost as the next lane.

🤖 Generated with Claude Code

@ramezgerges

Copy link
Copy Markdown
Contributor Author

Full-suite stability note: running the unfiltered runtime-test suite against WebGPU crashes with a wgpu Buffer does not exist panic partway through (state-dependent; reproduced at When_Canvas_Larger_Than_Parent_Should_Not_Clip after the flyout/transition clusters). Bisected via kill-switches (UNO_WEBGPU_NO_REUSE / UNO_WEBGPU_NO_BUNDLES, both still crash) and confirmed on a build with all of this session's rendering commits reverted — pre-existing on the branch, not introduced by the perf work. Likely in the deferred-release/layer-pool lifetime handling under heavy flyout churn; filed for a separate investigation. The clip-focused batch (72 tests) remains stable at 61/72 across all configurations.

🤖 Generated with Claude Code

@ramezgerges
ramezgerges force-pushed the feature/drawing-backend-abstraction branch from e49ce1c to 54c0702 Compare August 24, 2026 21:57
@ramezgerges
ramezgerges force-pushed the feature/drawing-backend-abstraction branch from 6502a17 to 7663afe Compare August 25, 2026 19:17
@MartinZikmund
MartinZikmund changed the base branch from feature/breakingchanges to master September 2, 2026 20:42
ramezgerges and others added 4 commits September 3, 2026 11:20
Adds Given_DrawingBackend_Conformance — 8 always-on parity tests that
render deterministic solid-colour scenes (solid fill, rounded-rect corner
clip, path fill, stroke outline, linear + radial gradient, opacity blend,
geometry clip) through the normal XAML → composition → drawing-backend
pipeline and assert pixel colours at known points. No golden images and no
runtime-shader dependence, so the SAME assertions run under software
rendering (lavapipe) on every backend. Proves seam parity: 8/8 on Skia and
8/8 on WebGPU (UNO_WEBGPU=1). Addresses the rendering-contract review's
conformance-suite gap (#68); complements Given_GradientBrush (golden) and
Given_EffectBrush_Parity (effects).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…n log

- Architecture doc: rewrite the Lottie seam section for the SkiaSharp-free
  ManagedLottie engine (now the default), the IGeometryFactory-carrying
  Load, and the Skottie-vs-managed resolution + UNO_MANAGED_LOTTIE toggle.
- RUNNING-CONTEXT §51: JS-honest browser WebGPU handoff (JsDevice/JsColorView,
  double-import), radial focal-origin fix, conformance suite, managed Lottie,
  and the two documented deferrals (layer sub-rect sizing, lighting node).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Adds trim-path (tm) support to ManagedLottie: keep the [Start,End]%
arc-length of a group's paths, rotated by Offset (deg), applied via
IGeometry.GetFilledGeometry before fill/stroke. Simultaneous mode (trim
over the concatenated group length); wrap across the seam is a best-effort
union of the two arcs. Unlocks the common loader/progress/checkmark
animations that draw a stroke on via trim.

Test: Given_ManagedLottie.When_Trim_Animation_Renders_And_Animates renders
ms-appx 4930-checkbox-animation.json (trim + ellipses + fills/strokes) and
asserts non-blank + animates — passes on Skia, WebGPU, and Skottie
(renderer-agnostic), so managed trim matches the Skottie oracle.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ndow

A SaveLayer offscreen (opacity-isolation, colour-matrix, and especially the
drop-shadow fallback for gradient/image-filled cards) allocated and rendered
into a FULL-WINDOW surface even for a small card — wasting memory and fill
every frame. Size it to the layer's visible device bounds instead.

The surface is now rebased through the NDC basis: added _basisOx/Oy/W/H on
WebGpuPresentSession; Ndc(), WriteXform() (path-fill projection), TryScissor()
+ the widenable-scissor widen, and finvMap()'s translation (clip/gradient
fragment coords, folded in FillClipU) all map absolute device space into the
layer's sub-rect. RenderInto carries the basis (default = target/window,
identity) and saves/restores it around nested layers. The composite samples
the smaller texture by framebuffer position (params.z + m0 = offset,size).
Cached recordings (frame-solid/arena/compiled caches) bake window-space
coordinates keyed on the recording, so under a sub-surface they are rebuilt
fresh and uncached via the basis-aware immediate path (main-window path
untouched). Gated to mode-0 layers (SrcOver / drop shadow), no colour-matrix,
no backdrop, no nested layer; mask/matrix/backdrop keep the full-size surface.
UNO_WEBGPU_NO_SUBLAYER=1 forces the old full-window path (escape hatch + A/B).

Correctness validated headlessly (lavapipe): a gradient ThemeShadow card
renders BYTE-IDENTICAL to the full-window path (sub-rect ON vs OFF, RMS
0.000000); the broad WebGPU suite (conformance/gradient/effect/container/
border) is ON==OFF across 52 tests; new Given_DrawingBackend_Conformance.
When_Shadow_Layer 9/9 on Skia + WebGPU (sub-rect on/off). Even on software,
the smaller offscreens already help (Dashboard 13.1 vs 10.9 fps); the real
memory-bandwidth win is on GPU, to be measured on hardware.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@ramezgerges
ramezgerges force-pushed the feature/drawing-backend-abstraction branch from 2c7474d to 8565f65 Compare September 3, 2026 17:13
@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 231941 has failed on Uno.UI - docs.

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 231940 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 289, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • Focus_FocusVisual_Properties.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImageIconPage.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • ClipboardTests.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
  • skia-windows-screenshots: 289 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png-dark
    • AutomationProperties_AutomationId.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • Expander_ScrollView.png-dark
    • Expander_ScrollView.png
    • EasClientDeviceInformation.png-dark
    • EasClientDeviceInformation.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Display.DisplayRequest.png-dark
    • Display.DisplayRequest.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • GeolocatorPositionChanged.png-dark
    • GeolocatorPositionChanged.png
    • AuthenticationBroker_Demo.png-dark
    • Contacts_Pick.png-dark
    • Contacts_Pick.png
    • ContentPresenter_NativeEmbedding_ZIndex.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation

ramezgerges and others added 2 commits September 3, 2026 15:29
CreateBlendModeColorFilter took a BlendMode, but only SrcIn was ever passed
(one caller: CompositionSurfaceBrush's monochrome tint) and only SrcIn was
ever honored. Skia mapped the full set; WebGPU pattern-matched SrcIn and fell
through to "untinted" for anything else, with no log. So a second caller
passing any other mode would have rendered on Skia and silently dropped on
WebGPU.

Replace it with CreateTintColorFilter(Color): SrcIn is the contract, so there
is no mode to disagree about. WebGpuColorFilter loses its now-dead Mode field
and IsBlendMode becomes IsTint.

BlendMode itself is unchanged and keeps all 26 members - the audit found every
one of them is emitted by EffectGraphParser from user XAML and mapped by both
backends, so none is dead. It is now documented as the EFFECT seam's enum,
with a pointer away from colour filters, and its group comments no longer
imply an exclusivity that never held (SrcIn was used by both paths).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
DrawImage took an ImageSampling, and WebGPU silently discarded it: the
argument was never stored on ImageCmd and the backend has a single sampler
hard-wired to Linear (WebGpuDevice.cs). Skia mapped it to
SKFilterMode.Linear/Nearest, so the two backends sampled differently.

It happened to be invisible. Of the eight call sites, seven pass Linear and
the one NearestNeighbor caller (SkiaAcrylicBrush's noise tiling) steps by
exactly texture.PixelWidth/PixelHeight - at 1:1 with pixel-aligned placement
linear and nearest sample the same texel centres, so the outputs agree. The
parameter was an optimization hint at a scale where it has no effect, not a
rendering requirement.

Rather than implement it (a second sampler, a command field and a bind-group
variant to change no pixels), remove it: a backend picks its own filtering,
which is correct for all eight callers. The acrylic loop keeps the intent as a
comment - the tiling must stay 1:1, because drawing that noise scaled would
filter it into mush whatever the backend chooses.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@nventive-devops

Copy link
Copy Markdown
Contributor

The build 231961 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 289, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • ContextRequested.png-dark
    • ContextRequested.png
    • ImageIconPage.png-dark
    • Buttons.png-dark
    • Buttons.png
    • ElementLevelTheme.png-dark
  • skia-windows-screenshots: 289 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AutomationProperties_AutomationId.png-dark
    • ElevatedView_Dimensions.png-dark
    • ElevatedView_Dimensions.png
    • ElevatedView_Levels.png-dark
    • ElevatedView_Levels.png
    • FluentStyle_NavigationViewSample.png-dark
    • FluentStyle_NavigationViewSample.png
    • Battery.png-dark
    • ButtonClippingTestsControl.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • HierarchicalNavigationViewMarkup.png-dark
    • HierarchicalNavigationViewMarkup.png
    • ElevationView_Clipping.png-dark
    • ElevationView_Clipping.png
    • InfoBarPage.png-dark
    • InfoBarPage.png
    • Accessibility_ScreenReader.png-dark
    • AuthenticationBroker_Demo.png
    • ButtonClippingTestsControl.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Uno_Web.Http.CookieManagerTests
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background

@ramezgerges
ramezgerges force-pushed the feature/drawing-backend-abstraction branch from 70ebacc to 6789ab0 Compare September 23, 2026 20:16
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 235366 found UI Test snapshots differences: skia-linux-screenshots: 57, skia-windows-screenshots: 2310, wasm: 11

Details
  • skia-linux-screenshots: 57 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • ContextRequested.png-dark
    • ContextRequested.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • ImageIconPage.png-dark
    • Gamepad_CurrentReading.png-dark
  • skia-windows-screenshots: 2310 changed over 2498

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AppBarButtonTest.png-dark
    • AppBar_KeyBoard.png
    • ApplicationViewSizing.png-dark
    • AppWindowPositionAndSize.png-dark
    • Arrange_Performance01.png-dark
    • Attributed_text_Simple.png
    • AutoBorderStretchwithrightmargin.png-dark
    • AutomationPropertiesExtensions_Role.png
    • AutoSizedTopLeft.png
    • AutoSuggestBoxChosenSuggestion.png-dark
    • AutoSuggestBox_SoftKeboard.png-dark
    • AutoSuggestBox_SoftKeboard.png
    • Basics.png-dark
    • Basics.png
    • BindableDrawerLayout_ChangePane.png-dark
    • BindableDrawerLayout_ChangePane.png
    • BorderCenteredwithmargins.png-dark
    • BorderCenteredwithmargins.png
    • BorderTopwithmargins.png-dark
    • BorderTopwithmargins.png
  • wasm: 11 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Ogg_Extension
    • UITests.Uno_Web.Http.CookieManagerTests
    • UITests.Windows_UI_Xaml_Media_Animation.ColorAnimation_Background
    • Uno.UI.Samples.Content.UITests.WebView.WebView_AnchorNavigation
    • UITests.Windows_UI_Xaml_Controls.CalendarView.CalendarView_Theming

@ramezgerges
ramezgerges merged commit de4824d into unoplatform:master Sep 23, 2026
61 checks passed
@mergify

mergify Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

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.

@ramezgerges
ramezgerges deleted the feature/drawing-backend-abstraction branch September 23, 2026 22:01
MartinZikmund added a commit that referenced this pull request Sep 28, 2026
Since #24153 text was filled as glyph outline paths, skipping the glyph
cache and scaler hinting: 10-40x slower and blurry at small sizes.
Skia sessions now draw glyph runs as text blobs; other backends keep
the outline path. On Windows, grayscale edging matches DirectWrite.

Fixes #24652

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WHQGrdpD7nu5qU71pqPwiC
MartinZikmund added a commit to unoplatform/uno.templates that referenced this pull request Sep 29, 2026
BREAKING CHANGE: `--renderer` now accepts `skia` (default) or `webgpu`.
`native` stays removed.

`--renderer webgpu` adds the `WebGpu` UnoFeature next to `SkiaRenderer`,
so Uno.Sdk references Uno.WinUI.Composition.WebGpu (unoplatform/uno#24153)
and the runtime negotiates the drawing backend. The Skia backend stays
included as the fallback.

- unoapp/unolib template.json: add the `webgpu` choice and a
  `useWebGpuRenderer` computed symbol.
- MyExtensionsApp.1.csproj / CrossTargetedLibrary.csproj: emit `WebGpu;`
  when `useWebGpuRenderer` is set.
- TemplateWizard.json: bring back the renderer single-select in Features,
  with a `renderer.webgpu` entry that reuses the Skia rendering icon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013vMq8j2sEJeY54EXxrzAiE
MartinZikmund added a commit that referenced this pull request Oct 1, 2026
Since #24153 text was filled as glyph outline paths, skipping the glyph
cache and scaler hinting: 10-40x slower and blurry at small sizes.
Skia sessions now draw glyph runs as text blobs; other backends keep
the outline path. On Windows, grayscale edging matches DirectWrite.

Fixes #24652

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WHQGrdpD7nu5qU71pqPwiC
agneszitte pushed a commit to unoplatform/uno.templates that referenced this pull request Oct 31, 2026
BREAKING CHANGE: `--renderer` now accepts `skia` (default) or `webgpu`.
`native` stays removed.

`--renderer webgpu` adds the `WebGpu` UnoFeature next to `SkiaRenderer`,
so Uno.Sdk references Uno.WinUI.Composition.WebGpu (unoplatform/uno#24153)
and the runtime negotiates the drawing backend. The Skia backend stays
included as the fallback.

- unoapp/unolib template.json: add the `webgpu` choice and a
  `useWebGpuRenderer` computed symbol.
- MyExtensionsApp.1.csproj / CrossTargetedLibrary.csproj: emit `WebGpu;`
  when `useWebGpuRenderer` is set.
- TemplateWizard.json: bring back the renderer single-select in Features,
  with a `renderer.webgpu` entry that reuses the Skia rendering icon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013vMq8j2sEJeY54EXxrzAiE
MartinZikmund added a commit to unoplatform/uno.templates that referenced this pull request Nov 5, 2026
BREAKING CHANGE: `--renderer` now accepts `skia` (default) or `webgpu`.
`native` stays removed.

`--renderer webgpu` adds the `WebGpu` UnoFeature next to `SkiaRenderer`,
so Uno.Sdk references Uno.WinUI.Composition.WebGpu (unoplatform/uno#24153)
and the runtime negotiates the drawing backend. The Skia backend stays
included as the fallback.

- unoapp/unolib template.json: add the `webgpu` choice and a
  `useWebGpuRenderer` computed symbol.
- MyExtensionsApp.1.csproj / CrossTargetedLibrary.csproj: emit `WebGpu;`
  when `useWebGpuRenderer` is set.
- TemplateWizard.json: bring back the renderer single-select in Features,
  with a `renderer.webgpu` entry that reuses the Skia rendering icon.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013vMq8j2sEJeY54EXxrzAiE
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 area/solution-templates Categorizes an issue or PR as relevant to the solution template 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