Skip to content

fix(webgpu): Follow-ups from the #25664 review - #25815

Merged
ramezgerges merged 3 commits into
unoplatform:masterfrom
ramezgerges:dev/rara/webgpu-ci-followups
Oct 30, 2026
Merged

ramezgerges merged 3 commits into
unoplatform:masterfrom
ramezgerges:dev/rara/webgpu-ci-followups

Conversation

@ramezgerges

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #25814

PR Type:

🐞 Bugfix

What changed? 🚀

Follow-up to the review of #25664 (merged), covering the points raised there.

macOS WebGPU: a frame made while the window is hidden is retried (#25814, 25cd81fb9c)

  • An occluded surface presents nothing, but the swap chain reported that acquire as a successful present. The macOS render thread therefore never retried it, and nothing asks for a frame when the window is restored. A window restored after its content changed kept showing the old content until the next invalidation.
  • The swap chain now reports Occluded as a failed present, still without reconfiguring the surface. The render thread's backoff retries it until the window shows again.
  • Skia-on-Metal doesn't need this: a minimized window's layer still vends drawables, and the frame presented into it is what the restored window shows. The new test is therefore WebGPU-only and Inconclusive elsewhere. This corrects the review's reading that Skia gets a nil drawable there.

Occluded named from its own enum (c7603a4ae7): both constants are derived from WGPUNativeSurfaceGetCurrentTextureStatus.WGPUSurfaceGetCurrentTextureStatus_Occluded instead of a hex literal. The comment now says the status lives in a separate enum rather than being missing from the header.

On-demand ListView test: the UIA client guard is Windows-only (715a1923c9). Only Windows can have an external UIA client walk the new content. On Android, iOS and WASM, a peer created on load fails the test again instead of making it Inconclusive.

Notes on #25664's description, which had fallen behind its branch:

Validation

  • Runtime, macOS (Xcode 27, Intel Mac mini), new Given_CompositionTarget.When_Content_Changes_While_Minimized_Then_Restore_Presents_It:
WebGPU Skia/Metal
#25664 head Failed 2/2 —
this PR Passed 4/4 (two builds) Inconclusive
  • Compile: desktop SamplesApp (Windows, net11.0-desktop) and the macOS desktop head.

PR Checklist ✅

🤖 Generated with Claude Code

ramezgerges and others added 3 commits October 29, 2026 09:45
An occluded surface presents nothing, but its acquire was reported as a
successful present, so the macOS render thread never retried it. A frame
made while the window was minimized then never reached the screen once
the window was restored: it kept what it showed before it was hidden
until the next invalidation. Report it as a failed present (still
without reconfiguring) so the render thread's backoff retries it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Only Windows can have an external UIA client walk the new content. On
the other platforms, a ListView peer created on load must still fail
the test rather than make it inconclusive.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions github-actions Bot added the area/skia ✏️ Categorizes an issue or PR as relevant to Skia label Oct 29, 2026
@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 242234 found UI Test snapshots differences: skia-linux-screenshots: 2458, skia-windows-screenshots: 2458

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

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • AppBarButtonTest.png
    • AppBar_KeyBoard.png
    • ApplicationViewSizing.png
    • AppWindowFeatures.png-dark
    • AppWindowTitleBar Properties.png
    • Attributed_text_FontSize_Changing.png-dark
    • AuthenticationBroker_Cancel.png
    • AutomationProperties_AutomationId.png
    • AutomationProperties_Landmark.png-dark
    • AutoSuggestBoxChosenSuggestion.png-dark
    • AutoSuggestBoxChosenSuggestion.png
    • BackGesture.png-dark
    • BackGesture.png
    • BasicAutoSuggestBox.png-dark
    • BasicAutoSuggestBox.png
    • BasicThemeResources.png-dark
    • BasicThemeResources.png
    • BitmapIcon_Generic.png-dark
    • BitmapIcon_Generic.png
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • AppBarButtonTest.png
    • AppBar_KeyBoard.png
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowFeatures.png-dark
    • AppWindowTitleBar Properties.png-dark
    • Arrange_Performance01.png-dark
    • Attributed_text_Supserscript.png
    • AuthenticationBroker_Demo.png
    • AutoBorderStretchwithbottommargin.png-dark
    • AutomationProperties_Name.png
    • AutomationProperties_Relations.png-dark
    • AutoSuggestBoxChosenSuggestion.png-dark
    • AutoSuggestBoxChosenSuggestion.png
    • BackGesture.png-dark
    • BackGesture.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • BasicThemeResources.png-dark
    • BasicThemeResources.png

@mergify

mergify Bot commented Oct 30, 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 merged commit 277c8b4 into unoplatform:master Oct 30, 2026
70 checks passed
@ramezgerges
ramezgerges deleted the dev/rara/webgpu-ci-followups branch October 30, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS WebGPU: Content changed while minimized is not shown after restore

4 participants