Skip to content

v0.1.0-preview.5

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 15:06
· 489 commits to main since this release
4221868

Highlights

  • Pooled tile renderers share converted images (#432). Each image is converted once per document and shared by every pooled Skia or software tile renderer, within the image memory budget; image resampling works in bounded bands. On the iOS simulator, a full-width photo page peaks at 0.82 GB instead of 3.6–3.7 GB, and its tiles finish in 5.6 s instead of 11.5–14.8 s.
  • Scaled image decode in every native backend (#428 parts 3–5). CoreGraphics, Android Canvas and Direct2D now decode images at the resolution they are drawn, like Skia and WebGL. Off by default for page renders; the viewer turns it on. A cover photo drawn 150 px wide renders in 36 ms instead of 221 ms with CoreGraphics on macOS.
  • WebGL on Linux WebKit (#444). When OffscreenCanvas has no WebGL 2 context, the WebGL renderer falls back to a document canvas instead of switching itself off.
  • Live demo: https://michaelstonis.github.io/Broadside/demo/

New API

SkiaBackend.ShareConvertedImages, SoftwareRasterizer.ShareConvertedImages, CoreGraphicsRenderer.ScaledImageDecode / ImageSamplesPerPixel, AndroidCanvasBackend.ScaledImageDecode / ImageSamplesPerPixel, Direct2DRenderer.ScaledImageDecode / ImageSamplesPerPixel.

Known issues

#420, #424, #387, #398, #393, #434, #445. Fixes for all of them are in progress on the integration branch.

What's Changed

  • perf(viewer): pooled tile backends share converted images (#432) by @michaelstonis in #437
  • feat(coregraphics): decode images at the resolution they are drawn (#428 part 3) by @michaelstonis in #439
  • feat(direct2d): decode images at the resolution they are drawn (#428 part 5) by @michaelstonis in #438
  • feat(android): decode images at the resolution they are drawn (#428 part 4) by @michaelstonis in #440
  • fix(webgl): fall back to a document canvas when OffscreenCanvas has no WebGL 2 by @michaelstonis in #444
  • Broadside v0.1.0-preview.5: shared image conversions, scaled decode in CoreGraphics, Android and Direct2D by @michaelstonis in #441

Full Changelog: v0.1.0-preview.4...v0.1.0-preview.5