Repository navigation
[skia-sync] Merge upstream chrome/m156 bug fixes - #5687
Conversation
Advance the release/4.156.x Skia submodule to the validated two-parent merge and record the exact upstream m156 commit in Component Governance metadata. Co-authored-by: Copilot <[email protected]>
📦 Try the packages from this PRWarning 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 -- 5687PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5687"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-5687/packages --name skiasharp-pr-5687More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-5687 |
📊 SkiaSharp benchmarks — PR #5687⭐ this PR (full source build) vs 🌙 nightly · Windows · macOS
Highlights⏱️ Time — 🔴 36 slower · 🟢 29 faster
Full per-OS benchmark deltasWindows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
[M156] Fix Ganesh flush tokens, rrects and Graphite clip limits (#444) Context: mono/SkiaSharp#5687 Changes: d1717dc...8c8de9a Merge chrome/m156 through 24e65cd into release/4.156.x, retaining upstream merge ancestry. C API declarations, dependency pins and generated bindings are unchanged. ~~ Advance Ganesh tokens even when a flush records no draws ~~ Empty flushes could leave per-flush atlas token comparisons stale. Advance the draw token when GrOpFlushState resets and catch the flush token up to it, so work scheduled during one flush is not considered pending by a later flush. ~~ Map rounded-rectangle radii and strokes on the correct axes ~~ Off-diagonal matrix coefficients were mixed between rows when mapping rrect radii and stroke widths. Correct those transforms, including the ellipse stroke mapping, and remove the extra quarter-turn swap because the corrected mapping already produces device-space axes. Clamp circular and elliptical corner radii to half the transformed bounds to prevent corner overlap. Document the rect-preserving and similarity assumptions behind the mapping shortcuts. ~~ Budget Graphite clip draws against render-step capacity ~~ DrawListLayer records clip shapes on first use, but flush checks did not include clips still needing a draw. Count those elements without double-counting clips already represented in pendingRenderSteps. A flush resets clips to undrawn, so a fresh pass must accommodate the draw and its full effective clip stack. When that cannot fit, warn and skip the draw instead of recording more render steps than the pass can hold. Allow capacity assertions to accept a pass exactly at its limit. DeviceTestClipRenderStepLimits issues repeated draws under accumulating clip stacks, an oversized single-draw stack and a subsequent normal draw; it asserts that Recorder::snap still produces a recording. Co-authored-by: Thomas Smith <[email protected]> Co-authored-by: Nathan Sanchez <[email protected]> Co-authored-by: Michael Ludwig <[email protected]> Co-authored-by: Matthew Leibowitz <[email protected]> Co-authored-by: Copilot <[email protected]>
Latest: [M156] Fix Ganesh flush tokens, rrects and Graphite clip limits (#444) Commit: cb6f6ce6bf3aa7102bbffa49e4b760d948d68918 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
[4.155] Backport CVE-2026-126871 and CVE-2026-126882 fixes (#5793) Context: #5687 (4.156.1 already carries both fixes) Requires: mono/skia#461 Pin the two m155 Skia security fixes into the 4.155 servicing line for 4.155.2. The submodule and Component Governance hash point to `168d7202034d`, the squash merge of mono/skia#461. Its tree matches the reviewed backport head `74a1a34d40`, so repinning did not change the reviewed code. Keep `upstream_merge_commit` at the last chrome/m155 sync: these are m156 cherry-picks, not a new m155 upstream merge. No C API, managed API, or package versions change. ~~ Graphite clip render-step overflow ~~ CVE-2026-126871 (Chromium bug 574218401; M156 fix `160aff2851`): DrawListLayer recorded clip draws without accounting for pending clip elements in the draw-pass render-step limit, allowing pipeline data structures to overflow. Count undrawn clip elements when checking the limit, retain deferred-clip budgeting when DrawListLayer is disabled, and skip with a warning when a draw and its full clip stack cannot fit even in a fresh pass. `DeviceTestClipRenderStepLimits` exercises batches that require flushing, a pathological clip stack, and a normal draw after the skipped draw. ~~ Ganesh skewed elliptical rounded-rectangle geometry ~~ CVE-2026-126882 (Chromium bug 578685706; M156 fix `24e65cdd9b`): Elliptical rounded-rectangle ops used incorrect skew-matrix terms when mapping radii and stroke widths, producing incorrect geometry under skew or anisotropic transforms. Use the correct matrix terms and clamp transformed corner radii to half the mapped bounds to prevent self-intersections. The m155 cherry-pick applied without conflicts. Co-authored-by: Ramez Ragaa <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Copilot App <[email protected]>
Description
Automated upstream bug-fix sync for m156. Targeting release branch
release/4.156.x(mono/skiarelease/4.156.x).This pull request was produced by skia-upstream-sync.
Related issues
N/A — automated upstream synchronization.
Required skia PR
Requires mono/skia#444
Areas affected
binding/)externals/skia/src/c,include/c)Changes
Updated the
externals/skiagitlink to validated native merge8c8de9aa05950b0b251924873c361a5441997b54and recorded upstreamchrome/m156commit24e65cdd9b6421351dde22acd81dc604bd8073b8incgmanifest.json. The release-line package,assembly, file, and native ABI versions remain unchanged.
Binding regeneration produced no changes or new native functions, so no C# wrapper or test source
changes were required. Component Governance dependency identities and semantic versions remain
unchanged because final
DEPSmatches the existing fork base.Testing
native-build-exit-code.txt= 0).managed-build-exit-code.txt= 0).tests/SkiaSharp.Tests.Console.slnx: passed.No backend required by Linux
GpuPolicywas skipped; required software GPU backends initializedand executed successfully.
Human review
Review the submodule/Component Governance SHA update and the linked native analysis. Windows,
macOS, Android, WASM, and Tizen native builds were not executed locally and remain for normal CI.
The independent review and its resolved follow-up are included in the automation artifacts.
Checklist
Changesabove lists all public API and behavioral changes or states that none changedmono/skiaPR linked above and bindings regeneratedLast rendered by the sync workflow: 2026-11-11T07:05:27Z