Skip to content

fix(2dsk): Stop referencing Graphics3DGL from Graphics2DSK - #24770

Merged
MartinZikmund merged 9 commits into
masterfrom
dev/mazi/2dsk-no-3dgl-ref
Oct 7, 2026
Merged

MartinZikmund merged 9 commits into
masterfrom
dev/mazi/2dsk-no-3dgl-ref

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: closes #24699

PR Type

  • 🐞 Bugfix

What is the current behavior? 🤔

The GL-island fallback (b6b81f2, #24153) made Uno.WinUI.Graphics2DSK.dll reference Uno.WinUI.Graphics3DGL (and Silk.NET.OpenGL) through SkiaGLCanvasElement : GLCanvasElement. The package doesn't depend on either, and the Uno.Sdk only adds Graphics3DGL for Desktop and WinAppSDK heads. JIT targets tolerate the missing assembly, but eager resolvers don't:

What is the new behavior? 🚀

Graphics2DSK.dll no longer references Graphics3DGL or Silk.

  • Uno.UI gets two small contracts in Uno.Graphics: IGLIsland (an element rendering into its own offscreen GL framebuffer) and IGLIslandRenderer (what draws into it).
  • Graphics3DGL implements IGLIsland as GLIsland : GLCanvasElement and registers it with [assembly: ApiExtension], on every non-WinAppSDK target (Skia, Android, iOS/tvOS).
  • SKCanvasElement asks ApiExtensibility for an island and passes a SkiaGLIslandRenderer (the former SkiaGLCanvasElement drawing code, still in 2DSK). Without Graphics3DGL nothing is registered and it uses the software surface as before. The NoInlining isolation tricks are gone.
  • 2DSK's logging moves from Uno.Core.Extensions.Logging to Uno.Foundation.Logging, a declared Uno.WinUI dependency. Those refs had also only arrived transitively through Graphics3DGL. This needs a new InternalsVisibleTo, the same one Uno.UI.Lottie already has.
  • Reverts 01e809a (BuildGraphics3DGLSkiaOnly): the reference build only needed it because 2DSK pulled Graphics3DGL's mobile TFMs into its graph.

Fix, revert and tests are separate commits.

Validation

Runtime tests, Skia Desktop (net11.0-desktop). The guard tests fail before the fix and pass after:

Test Before After
When_Graphics3DGL_Not_Referenced_By_Graphics2DSK ❌ ✅
When_GL_Island_Registered_By_Graphics3DGL ❌ ✅
When_GL_Island_Renders_Or_Reports_Unavailable n/a ✅
Existing Given_SKCanvasElement tests ✅ ✅

Android AOT and net11 iOS weren't reproduced locally. CI plus the uno.templates net11 matrix will confirm them.

PR Checklist ✅

  • 📝 Commits follow the Conventional Commits spec
  • 🧪 Added runtime tests
  • 📚 Docs: no user-facing API change (IGLIsland/IGLIslandRenderer are extension plumbing)

🤖 Generated with Claude Code

https://claude.ai/code/session_01EEXDUBVaCc4XeD4iLqTA43

@MartinZikmund MartinZikmund self-assigned this Sep 27, 2026
@github-actions github-actions Bot added area/skia ✏️ Categorizes an issue or PR as relevant to Skia area/build Categorizes an issue or PR as relevant to build infrastructure labels Sep 27, 2026
@github-actions

github-actions Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 3m 58s —— View job


Claude finished reviewing this PR

Todo list

  • Gather context (read AGENTS.md rules, diff, changed files)
  • Review SKCanvasElement.cs changes (reflection-based resolution, IVT, lifecycle)
  • Review SkiaGLCanvasElement.cs (moved file, delegate-based callbacks)
  • Review csproj changes (Graphics2DSK, Graphics3DGL, build csproj)
  • Review Uno.Foundation.Logging AssemblyInfo.cs (InternalsVisibleTo)
  • Review new runtime tests
  • Post inline comments for findings
  • Post summary

Verdict: ship

This is a clean, well-scoped root-cause fix — 1 low-severity finding, 0 blocking issues.

Summary of what I checked:

  • Assembly boundary: SKCanvasElement (Graphics2DSK) resolves SkiaGLCanvasElement purely by name (Type.GetType + Activator.CreateInstance), so Graphics2DSK's compiled reference list genuinely no longer includes Graphics3DGL/Silk — verified by reading GetIslandType()/CreateIsland() and confirming no remaining direct references anywhere in the tree (grep for SkiaGLCanvasElement/IsGLCanvasElementAvailable only turns up the new location, the test, and the csproj).
  • Trimming annotations: [DynamicallyAccessedMembers(PublicConstructors | PublicMethods)] is applied consistently on the GetIslandType() return and the CreateIsland parameter, matching the Activator.CreateInstance/GetMethod calls that consume it.
  • Delegate wiring: the constructor signature (Action<SKCanvas, Size>, Action) used by Activator.CreateInstance matches SkiaGLCanvasElement's public constructor exactly; Invalidate is inherited public/parameterless on GLCanvasElement, matching the CreateDelegate<Action> call.
  • Logging move: Uno.Foundation.Logging's Log() extension is internal (LogExtensionPoint.cs), so the new InternalsVisibleTo("Uno.WinUI.Graphics2DSK") is actually required, not incidental.
  • CI revert: confirmed BuildGraphics3DGLSkiaOnly has zero remaining references repo-wide after the revert — clean.
  • Commit split: fix / revert / test, each conventional-commit-formatted and independently buildable in sequence.
  • Tests: the three new tests correctly target the failure modes described (no Graphics3DGL/Silk reference, island resolvable + constructible by reflection, island renders or reports unavailable). PlatformCondition/GitHubWorkItem usage matches repo conventions.

Finding posted inline (src/AddIns/Uno.WinUI.Graphics3DGL/SkiaGLCanvasElement.cs): the class remarks say to keep the type name/constructor in sync with SKCanvasElement, but don't mention that the reflected-by-name Invalidate() method is part of that same contract. Documentation-completeness only — the existing When_GL_Island_Resolvable_From_Graphics3DGL test already guards the actual runtime behavior.

Not independently re-validated in this environment (per PR description, these rely on CI): Android Release AOT and net11 iOS linker builds, and the "strict analyzer + IsTrimmable=true" build of 2DSK/3DGL. Reviewed by code inspection only for those paths.

MartinZikmund added a commit to unoplatform/uno.templates that referenced this pull request Sep 28, 2026
Graphics2DSK references Graphics3DGL without a package dependency
(unoplatform/uno#24699), and the .NET 11 iOS CoreTypeMap linker step
fails on the unresolved assembly with MT2390. CI builds now add the
reference to net11.0-ios heads until unoplatform/uno#24770 ships.

Refs #2283

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012LP9CJvBWmdHb4JUSTF6DN
Copilot AI balanced review requested due to automatic review settings October 2, 2026 05:41
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 42s —— View job


Claude's review

Todo list

  • Gather context (diff vs origin/master, AGENTS.md rules, changed files)
  • Review SKCanvasElement.cs reflection-based resolution (trimming/AOT safety)
  • Review SkiaGLCanvasElement.cs delegate-based callbacks
  • Review csproj changes (Graphics2DSK, Graphics3DGL, build csproj)
  • Review Uno.Foundation.Logging AssemblyInfo.cs InternalsVisibleTo
  • Review new/changed runtime tests
  • Post inline comments for findings
  • Post summary

Verdict: ship — 0 new findings

This PR is in good shape. Re-reviewing the current state of all 7 changed files against AGENTS.md/.claude/rules/*, I found no new issues to post inline — the earlier review rounds (automated bot + @ramezgerges) have already been addressed by the latest commits:

  • d372b9e5 added the Invalidate-reflection-contract note to SkiaGLCanvasElement's remarks (closes the doc-completeness gap the first bot review flagged).
  • ed620d87 switched the test's inline new SKPaint { ... } to using var paint, closing the disposal finding from the code-quality bot.
  • 836325fd added the When_Graphics3DGL_Not_Referenced_By_Graphics2DSK assembly-reference test.

Checked specifically for this pass:

  • Trim/AOT safety: IslandTypeName is a const string, so Type.GetType(IslandTypeName) compiles to a literal ldstr at every call site (C# inlines const fields) — this is the pattern the trimmer's Type.GetType data-flow analysis recognizes, which is what makes the [DynamicallyAccessedMembers(PublicConstructors | PublicMethods)] annotations on GetIslandType()'s return and CreateIsland's parameter effective. This addresses the "storing it in a variable" trimming concern raised earlier — a const isn't a runtime variable, it's compile-time substituted.
  • Assembly boundary: confirmed repo-wide (grep) that no file outside the new Uno.WinUI.Graphics3DGL location still references SkiaGLCanvasElement/GLCanvasElement from Graphics2DSK, and BuildGraphics3DGLSkiaOnly has zero remaining references anywhere after the revert.
  • Delegate wiring: SkiaGLCanvasElement(Action<SKCanvas, Size>, Action) constructor signature matches CreateIsland's Activator.CreateInstance call and the test's GetConstructor([typeof(Action<SKCanvas, Size>), typeof(Action)]) check exactly; _invalidateIsland binds the inherited public parameterless Invalidate via CreateDelegate<Action>.
  • Logging migration: Uno.Foundation.Logging.Logger.Info(...) is a real API (Logger.cs), and the new InternalsVisibleTo("Uno.WinUI.Graphics2DSK") is required since Log() is internal.
  • Tests: When_Graphics3DGL_Not_Referenced_By_Graphics2DSK is correctly synchronous (void, no await); the two SkiaDesktop-scoped tests are correctly async Task. No [Ignore]/Assert.Inconclusive added. Matches .claude/rules/runtime-tests.md conventions.
  • csproj/build changes: Silk.NET.OpenGL and the Graphics3DGL project reference are fully removed from Uno.WinUI.Graphics2DSK.Crossruntime.csproj; SkiaSharp is correctly added to Graphics3DGL.csproj only under the non-windows10 ItemGroup; BuildCIReference in build/Uno.UI.Build.csproj reverts cleanly to match BuildCIPackages's pattern.

No cross-cutting concerns outside what's already been discussed on the thread. Android Release AOT and net11 iOS linker validation still rely on CI/uno.templates per the PR description — not independently re-run here.
· branch dev/mazi/2dsk-no-3dgl-ref

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The new GL runtime test leaves native resources loaded and can contaminate subsequent tests.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Removes Graphics2DSK’s hard dependency on the optional Graphics3DGL assembly while preserving reflective GL fallback.

Changes:

  • Moves the GL island implementation into Graphics3DGL.
  • Resolves the island reflectively and updates logging dependencies.
  • Adds dependency and runtime regression tests.

Review result: 1 unresolved bug.

File Description
Given_SKCanvasElement.skia.cs Adds dependency and GL fallback tests.
AssemblyInfo.cs Grants Graphics2DSK logging access.
Uno.WinUI.Graphics3DGL.csproj Adds SkiaSharp and restores mobile targeting.
SkiaGLCanvasElement.cs Moves the GL island into Graphics3DGL.
Uno.WinUI.Graphics2DSK.Crossruntime.csproj Removes Graphics3DGL and Silk references.
SKCanvasElement.cs Reflectively creates and invalidates the GL island.
Uno.UI.Build.csproj Removes the obsolete reference-build property.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@unodevops

Copy link
Copy Markdown
Contributor

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

Copilot AI balanced review requested due to automatic review settings October 3, 2026 08:52
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/2dsk-no-3dgl-ref branch from ed620d8 to fae970f Compare October 3, 2026 08:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 4 Medium severity

Open (4)

Copilot AI balanced review requested due to automatic review settings October 3, 2026 09:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 39s —— View job


Todo list

  • Gather context (diff vs origin/master, AGENTS.md rules, changed files)
  • Check status of previously raised findings (copilot GL-resource-leak, trimming/ApiExtensibility threads)
  • Review SKCanvasElement.cs / SkiaGLCanvasElement.cs for correctness, lifecycle, trimming
  • Review csproj changes
  • Review Uno.Foundation.Logging AssemblyInfo.cs
  • Review runtime tests
  • Post inline comments for any new findings
  • Post summary

Verdict: ship — 0 new findings

Re-diffed origin/master...HEAD (now 5 commits atop the just-merged #24821) against the content reviewed in the two prior automated passes and by @ramezgerges/@ajpinedam. The commit set is byte-for-byte the same work, just rebased (identical messages: fix(2dsk), Revert "fix(ci)...", test(2dsk) ×2, docs(3dgl) — new hashes only). No new lines were introduced, so there's nothing fresh to flag inline.

Confirmed still holding for all 7 files:

  • SKCanvasElement.cs: IslandTypeName stays a const, so Type.GetType compiles to ldstr + call — the ILLink data-flow case the [DynamicallyAccessedMembers] annotations actually cover (per @MartinZikmund's ILLink-trace reply to the trimming thread). GetIslandType()/CreateIsland(Type) and the Activator.CreateInstance/GetMethod calls line up.
  • SkiaGLCanvasElement.cs: remarks now document the Invalidate reflection contract alongside the type name/constructor, closing the doc-completeness finding from the first review round.
  • Assembly boundary: GetReferencedAssemblies() test + repo-wide grep confirm Graphics2DSK carries no Uno.WinUI.Graphics3DGL/Silk.NET.OpenGL reference.
  • csproj/build: Silk.NET.OpenGL and the Graphics3DGL ProjectReference are gone from Uno.WinUI.Graphics2DSK.Crossruntime.csproj; SkiaSharp lands only in Graphics3DGL's non-windows10 ItemGroup; BuildGraphics3DGLSkiaOnly has zero remaining references after the revert in build/Uno.UI.Build.csproj.
  • Logging: new InternalsVisibleTo("Uno.WinUI.Graphics2DSK") in Uno.Foundation.Logging/AssemblyInfo.cs is required since Log() is internal.
  • Tests: SKPaint is now using var-disposed in both the new test lambda and BlueFillSKCanvasElement.RenderOverride (closing the code-quality bot's finding). GitHubWorkItem/PlatformCondition usage and sync-vs-async Task choice per method match .claude/rules/runtime-tests.md.

One pre-existing pattern I checked but am not flagging: When_GL_Island_Renders_Or_Reports_Unavailable doesn't reset WindowHelper.WindowContent in a finally (Copilot flagged this as a GL-resource-leak risk). Looking at GLCanvasElement.cs, it wires Unloaded += OnUnloaded, which disposes the GL context/surface/render-target on unload — and UITestHelper.Load overwrites WindowContent wholesale, so the next test's Load call unloads (and thus cleans up) this element regardless. It's also consistent with every other test already in this file (none of them reset WindowContent either). Not a regression introduced by this PR.

Not independently re-executed here (relies on CI per the PR description): Android Release AOT, net11 iOS linker (uno.templates matrix), and the strict-analyzer/IsTrimmable=true build of 2DSK/3DGL. CI for this latest push is still in progress (CodeQL, Copilot review, Code Quality, link check all running at review time).
· branch dev/mazi/2dsk-no-3dgl-ref

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 237195 found UI Test snapshots differences: skia-windows-screenshots: 145, skia-linux-screenshots: 119

Details
  • skia-windows-screenshots: 145 changed over 2456

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • Buttons.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • ImagesInlineInFlipView.png-dark
    • ImagesInlineInFlipView.png
    • Image_Placeholder.png-dark
    • Image_Placeholder.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • Grid_DynamicRowColumn.png-dark
    • Grid_DynamicRowColumn.png
    • Image_UseTargetSizeLate.png-dark
    • Image_UseTargetSizeLate.png
  • skia-linux-screenshots: 119 changed over 2454

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • DisplayInformation.png-dark
    • CalendarView_Theming.png-dark
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • Focus_FocusVisual_Properties.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • DynamicFont.png-dark
    • DynamicFont.png
    • Examples.png
    • ImageIconPage.png-dark
    • ImageIconPage.png

Copilot AI balanced review requested due to automatic review settings October 5, 2026 08:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 237386 found UI Test snapshots differences: skia-linux-screenshots: 113, skia-windows-screenshots: 261

Details
  • skia-linux-screenshots: 113 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • ImageSourceUrlMsAppDataScheme.png-dark
  • skia-windows-screenshots: 261 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CalendarView_Theming.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • DeferLoadStrategyWithTemplateBinding.png-dark
    • DeferLoadStrategyWithTemplateBinding.png
    • DisplayInformation.png-dark
    • ClipboardTests.png-dark
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Examples.png
    • Focus_FocusVisual_Properties.png
    • GridView_Inside_ScrollViewer.png-dark
    • GridView_Inside_ScrollViewer.png
    • GridView_ItemContainerStyle_Selection.png-dark
    • Grid_DataBound_ColumnRow_Definitions.png-dark
    • GridView_ItemContainerStyle_Selection.png
    • Grid_DataBound_ColumnRow_Definitions.png
    • GridView_Item_TextBlock_And_Button.png-dark
    • Grid_def_MinMaxValues.png-dark

MartinZikmund and others added 9 commits October 7, 2026 11:29
The GL-island fallback made Graphics2DSK reference Graphics3DGL, which its
package doesn't depend on. JIT targets tolerated it, but Android AOT and the
.NET 11 iOS linker (CoreTypeMap, MT2390) resolve every reference and failed
on every default app.

SkiaGLCanvasElement moves into Graphics3DGL and takes its render and
unavailable callbacks as delegates. SKCanvasElement creates it by name when
Graphics3DGL is present and falls back to the software surface otherwise.
Logging moves to Uno.Foundation.Logging, dropping the undeclared
Uno.Core.Extensions.Logging.Singleton and M.E.Logging.Abstractions refs.

Fixes #24699

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ku9VqS7Jf4TTnjPGrRAVff
This reverts commit 01e809a. Graphics2DSK no longer references
Graphics3DGL, so the reference build no longer pulls in its mobile TFMs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ku9VqS7Jf4TTnjPGrRAVff
Covers #24699: Graphics2DSK must not reference Graphics3DGL or Silk, and
the GL island must stay resolvable by name and render (or report GL as
unavailable) through its delegate contract.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ku9VqS7Jf4TTnjPGrRAVff
Graphics3DGL registers a public IGLIsland extension that renders through an
IGLIslandRenderer; Graphics2DSK supplies the Skia-on-GL renderer. Drops the
by-name reflection lookup (trimming-safe) and Graphics3DGL's SkiaSharp reference.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CKYPsdeNEWd1CARAojRx7H
GLIsland was CROSSRUNTIME-only, so an app referencing Graphics3DGL on
Android/iOS loaded an assembly without the IGLIsland registration and
SKCanvasElement fell back to the software surface.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EEXDUBVaCc4XeD4iLqTA43
Copilot AI balanced review requested due to automatic review settings October 7, 2026 09:36
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/2dsk-no-3dgl-ref branch from bed238c to ebdaf00 Compare October 7, 2026 09:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 17s —— View job


Review of the latest push (ebdaf006)

Verdict: ship. 0 inline findings.

This round was a code-inspection review of git diff origin/master...HEAD for src/AddIns and src/Uno.UI/Graphics. I did not build or run anything.

  • Mobile registration: GLIsland is now gated by #if !WINAPPSDK instead of CROSSRUNTIME. That addresses Copilot's open "compile the GL bridge for all non-WinAppSDK targets" finding.
  • OnUnavailable contract: IGLIslandRenderer now says OnUnavailable may run without a GL context and must not make GL calls. SkiaGLIslandRenderer.OnUnavailable only calls owner.OnIslandUnavailable(), so it complies. That addresses Copilot's other open finding.
  • Assembly boundary: Graphics2DSK now depends only on Uno.Graphics.IGLIsland and IGLIslandRenderer from Uno.UI. The Graphics3DGL and Silk.NET.OpenGL references are gone from its csproj, and the Uno.UI.Build.csproj revert is intact.
  • Trimming and AOT: the generated app startup code constructs GLIsland directly, so the trimmer sees an ordinary compile-time reference and the earlier string-lookup concern no longer applies.

Non-blocking notes

  • Uno.Graphics.IGLIsland, IGLIslandRenderer and the public GLIsland class are new public API. The PR checklist says "Docs: no public API change", which is no longer accurate. Please correct it, or confirm that no documentation is expected.
  • Android Release AOT and the net11 iOS linker are still not validated locally. They depend on CI and the uno.templates net11 matrix.
  • The recent UI snapshot-diff reports (100+ screenshots on both Skia Windows and Linux) look unrelated to a GL-island change. Please check they also appear on master before merging.
    · branch dev/mazi/2dsk-no-3dgl-ref

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 237847 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 1145

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ClipboardTests.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • DisplayInformation.png-dark
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • DropDownButtonPage.png-dark
    • Examples.png
    • DynamicFont.png-dark
    • DynamicFont.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
  • skia-windows-screenshots: 1145 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • AppWindowFeatures.png-dark
    • AutoBorderStretchwithleftmargin.png
    • AutoSizedPathCentered.png-dark
    • AutoSizedPathCentered.png
    • AutoSuggestBox_Keyboard.png
    • BindableDrawerLayout_ChangePane.png-dark
    • BindableDrawerLayout_ChangePane.png
    • BorderCenteredwithmargins.png-dark
    • BorderCenteredwithmargins.png
    • Border_CornerRadius_Alignments.png-dark
    • Border_CornerRadius_Alignments.png
    • Border_LinearGradientBrush.png-dark
    • Border_LinearGradientBrush.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • Brushes_ImplicitConvert.png-dark
    • Brushes_ImplicitConvert.png
    • ClipboardTests.png-dark
    • ComboBox_DropDownPlacement.png-dark

@mergify

mergify Bot commented Oct 7, 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.

@MartinZikmund
MartinZikmund merged commit 21ac4e7 into master Oct 7, 2026
62 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/2dsk-no-3dgl-ref branch October 7, 2026 13:02
MartinZikmund added a commit to unoplatform/Uno.Themes that referenced this pull request Oct 7, 2026
…e heads

This reverts commit 184e2ae. Uno 7.0.0-dev.1574 contains
unoplatform/uno#24770, so Uno.WinUI.Graphics2DSK no longer references
Uno.WinUI.Graphics3DGL and the Android AOT build no longer needs it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
MartinZikmund added a commit to unoplatform/uno.toolkit.ui that referenced this pull request Oct 7, 2026
First build with unoplatform/uno#24770, so Uno.WinUI.Graphics2DSK no longer
needs an undeclared Uno.WinUI.Graphics3DGL on Android.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ehtick pushed a commit to ehtick/Uno.Themes that referenced this pull request Nov 6, 2026
Picks up unoplatform/uno#24770, which fixes Android Release AOT of
Uno.WinUI.Graphics2DSK (unoplatform/uno#24699).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure area/skia ✏️ Categorizes an issue or PR as relevant to Skia

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android AOT and net11 iOS builds fail: Graphics2DSK missing Graphics3DGL dependency

6 participants