Skip to content

[skia-sync] Merge upstream chrome/m150 bug fixes - #5543

Merged
mattleibow merged 3 commits into
release/4.150.xfrom
skia-sync/release-4.150.x
Oct 31, 2026
Merged

mattleibow merged 3 commits into
release/4.150.xfrom
skia-sync/release-4.150.x

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

Description

Automated upstream bug-fix sync for m150. Targeting release branch release/4.150.x (mono/skia release/4.150.x).

This pull request was produced by skia-upstream-sync.

Related issues

N/A — automated upstream synchronization.

Required skia PR

Requires mono/skia#417

Areas affected

  • Managed API (binding/)
  • Native / C API (externals/skia/src/c, include/c)
  • Generated P/Invoke bindings
  • Native dependency or Skia update
  • Views & integrations
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

Changes

  • Updated externals/skia to tested mono/skia merge
    49a7ef98174b2aa4d98de24e17d04d6b3018e9a9 and updated the Skia Component Governance hashes.
  • Kept release-line versions unchanged at milestone 150; no package, assembly, file, soname, or
    dependency semantic version changed.
  • Regenerated all five maintained binding configurations. Generated declarations were unchanged,
    so no native function, managed wrapper, or public API decision was required.
  • Backported the proven Linux GL test-harness subset from 05dfca572c6dace01b6e81074df7b83d3ff2df07
    so Ganesh GL executes on the validation host: versioned X11/GL SONAMEs, Xlib thread
    initialization, shared GLX display lifetime, honest GLVND symbol lookup, and serialized GPU
    context classes.
  • Accepted Symbola, Noto Emoji, and Noto Color Emoji as valid Linux emoji fallback families,
    matching supported Linux test environments.

Testing

  • Linux x64 native source build: passed.
  • Managed binding build: passed with 0 errors.
  • Exact unfiltered tests/SkiaSharp.Tests.Console.sln run:
    • Core: 5,748 passed, 9 skipped, 0 failed (5,757 total); Ganesh GL executed with Mesa softpipe.
    • Singleton initialization: 1 passed, 0 skipped, 0 failed.
    • Vulkan: 2 passed, 5 skipped, 0 failed; the release branch explicitly supports Vulkan context
      creation only on Windows.
    • Direct3D: 2 passed, 3 skipped, 0 failed; Direct3D is unavailable on Linux.
  • No backend required by this release branch on Linux was skipped.
  • Metadata finalizer and fork-patch audit validation passed against the exact committed gitlink.

Human review

  • Review the Linux GL harness backport as test infrastructure only; product managed/native APIs are
    unchanged.
  • The staged automation helpers target the newer Generated directory and .slnx layouts. This
    release branch used its repository-owned utils/generate.ps1 and canonical .sln entry point.
  • Only Linux x64 was built and executed. Windows, macOS, Android, Apple platforms, WebAssembly,
    Tizen, Linux arm64, Direct3D execution, Metal execution, and Windows Vulkan execution remain for
    CI/human cross-platform review.

Checklist

  • Tests added or updated when behavior required them, or the report explains why not
  • Changes above lists all public API and behavioral changes or states that none changed
  • Documentation follow-up filed, or no public API changed
  • Companion mono/skia PR linked above and bindings regenerated

Last rendered by the sync workflow: 2026-10-31T02:40:25Z

Advance the release-line Skia pointer to the latest chrome/m150 backports and update Component Governance metadata. Backport the proven Linux GL test harness fixes needed to execute Ganesh GL under the validation host instead of silently skipping it.

Co-authored-by: Copilot <[email protected]>
@mattleibow mattleibow added partner/agentic-workflows Issues and PRs created by SkiaSharp agentic workflows. type/milestone-sync Any Skia upstream sync PR (milestone bump, same-milestone bug-fix re-sync, or tip sync). labels Oct 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 5543

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5543"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-5543/packages --name skiasharp-pr-5543
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-5543

mattleibow added a commit to mono/skia that referenced this pull request Oct 31, 2026
[Skia] Merge chrome/m150 region and texture fixes (#417)

Context: mono/SkiaSharp#5543

Merge chrome/m150 through f05f0f5 into
release/4.150.x, preserving upstream merge ancestry and the fork's
dependency configuration.

~~ Prevent conic-region buffer underallocation ~~

SkRgnBuilder budgeted two scanline edges per conic, but conic subdivision
and floating-point rounding can produce more crossings. Budget up to
64 edges using the shared subdivision limit, and use checked accumulation
to reject overflow before allocating the region run buffer.

Include Region_ConicMaxEdges to exercise the subdivision case behind the
heap out-of-bounds write. Its specific constants require
SK_SUPPORT_LEGACY_CONIC_CHOP to trigger the maximum subdivision.

~~ Reject unsupported BGRA-as-RGBx uploads ~~

The GL capability table allowed RGBA uploads to BGRA textures interpreted
as RGBx. That combination is permitted by desktop GL but not GLES.
Disable its upload format, matching the existing BGRA-as-RGBA policy
rather than introducing different behavior for the two GL standards.

~~ Retain nearest-filter subset clamps when sampling can overshoot ~~

Nearest filtering does not guarantee that touching subset edges are safe:
limited hardware sub-texel precision can round magnified coordinates into
an adjacent texel.

Restrict the touching-edge clamp bypass to one-to-one integer-relative
mappings, including rotations and flips. Check fractional domains against
the actual inset shader clamp, and retain a filtering margin when deciding
whether approximate-fit proxies require strict source bounds.

Resolve the subset optimization before choosing the texture operation so
eligible non-SrcOver draws receive the same treatment. Include texture
regressions for magnification, fractional mappings, rotations, flips and
approximate-fit proxies.

The companion validation reports a passing Linux x64 native source build,
binding regeneration without declaration changes, managed build and
unfiltered console-host run. That execution does not establish hardware
coverage for every backend addressed by these upstream fixes.

Co-authored-by: Thomas Smith <[email protected]>
Co-authored-by: Michael Ludwig <[email protected]>
Co-authored-by: Greg Daniel <[email protected]>
Co-authored-by: Copilot App <[email protected]>
github-actions Bot and others added 2 commits October 31, 2026 03:25
Latest: [Skia] Merge chrome/m150 region and texture fixes (#417)
Commit: 95bed8d58d692e6268f05682f0a4926f41aaf5fb
…kia-sync/release-4.150.x

Sync Skia submodule and cgmanifest into skia-sync/release-4.150.x
@mattleibow
mattleibow marked this pull request as ready for review October 31, 2026 03:29
@mattleibow
mattleibow merged commit 08f9030 into release/4.150.x Oct 31, 2026
2 of 4 checks passed
@mattleibow
mattleibow deleted the skia-sync/release-4.150.x branch October 31, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

partner/agentic-workflows Issues and PRs created by SkiaSharp agentic workflows. type/milestone-sync Any Skia upstream sync PR (milestone bump, same-milestone bug-fix re-sync, or tip sync).

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant