documentation/docfx/releases/4.151.0.md
Skia m151 performance and platform · NuGet (prerelease)
API changes · SkiaSharp API diff · HarfBuzzSharp API diff
SkiaSharp 4.151.0 updates to Skia m151 and eliminates allocations across several performance-critical hot paths. Color parsing, SKShaper glyph reads, and HarfBuzz shaping are reworked for zero-copy, allocation-free operation. A CPU raster regression introduced with the m151 sync is also corrected.
None in this preview line.
Removes per-call heap allocations in HarfBuzzSharp.Buffer.AddUtf8 via a pooled UTF-8 encoder and in HarfBuzzSharp.Tag.Parse by inlining the char array construction, making shaping hot paths allocation-free.
Thank you to everyone who contributed to this release!
| Contributor | Contributions |
|---|---|
| @ramezgerges | Added Emscripten 5.0.6 static libraries for .NET 11 WASM, fixed the SK_BUILD_FOR_WASM redefinition in the Skia submodule, and built the cross-backend golden-image visual regression test harness (#3788, #4340, #4459) |
Preview 2 landed the allocation-free SKShaper span path, the ReadOnlySpan<char> SKColor overloads, the GRContextOptions unsafe removal, HarfBuzz hot-path allocation fixes, and a batch of upstream m151 engine bug fixes.
Preview 1 opened the 4.151 line with the Skia m151 engine update and a fix to remove the SK_BUILD_FOR_WASM redefinition warning from WASM builds.