Repository navigation
Tags
Tags
fix(gpu): keep the text pipelines' sampler when the clip layout arrives MSDFTextPipeline and GlyphMaskPipeline are rebuilt once the clip bind layout is set after their first use. The rebuild created a new sampler and overwrote the only reference to the old one, which was never released and outlived the device (Vulkan validation VUID-vkDestroyDevice-device-05137 on close). The sampler does not depend on the clip layout, so the rebuild now keeps it. Tests for both pipelines fail on the old code. (P2-GPU-039)
release: v0.52.5 — raster backend device scale + anchored text offset (… …#525) * fix(recording): preserve device scale across draw operations (Skia fInitialCTM) FillRect, setPath, SetClip, and SetTransform called ctx.Identity() which reset the device Scale(2,2) set in Begin(). Result: at 2x scale, content rendered in top-left quadrant only (25% coverage). Fix: applyDeviceScale() replaces Identity() — resets CTM to device scale instead of identity. SetTransform composes device scale with recorded transform (Skia fInitialCTM * r.matrix pattern). 4 new tests: FillRect, FillPath, Clip, SetTransform — all at 2x scale. * fix(recording): compute DrawStringAnchored offset at record time Recorder.DrawStringAnchored and StrokeStringAnchored ignored ax/ay anchor parameters entirely — text was drawn at raw (x,y) without offset. Right-aligned text (ax=1.0) extended past the intended position instead of ending at it. Fix: compute anchor offset at record time using text.Measure + face metrics, matching Context.DrawStringAnchored exactly. Final baseline position stored in command (Skia SkTextBlob pre-positioned pattern). Pixel-perfect match verified: direct X=[226,348] = recording X=[226,348]. * release: v0.52.5 — raster backend device scale + anchored text offset
release: v0.52.4 — recording DrawText, HiDPI scale, font ID fix, dead… … code removal (#523) * docs: add star history chart (starhistory.io) * fix(lint): range over string instead of []rune(string) in benchmark staticcheck SA6003: ranging over []rune(string) allocates; range over string yields runes directly without allocation. * fix(recording): implement DrawText + HiDPI scale in raster backend DrawText was a no-op — font face not stored in commands, passed as nil at playback. Now DrawTextCommand carries text.Face (GC ref-count, matching Skia sk_sp<SkTextBlob> / Cairo cairo_scaled_font_reference). Font size scaled by CTM at record time for world-space playback. NewBackendWithScale(scale) creates enlarged pixel buffer with uniform scale transform (Skia fInitialCTM / Cairo replay_with_transform pattern). 5 new tests: text rendering, nil face safety, scaled font size, 2x backend dimensions, 2x backend text. * release: v0.52.4 — recording DrawText, HiDPI scale, font ID fix, dead code removal
release: v0.52.2 — 7 community bug fixes (@besmpl) + clip transform p… …arity fix (#507) - fix: concurrent global text cache race (#494) - fix: path bounds across Reset/Append/Clone (#497) - fix: premultiplied alpha double-mult in scene renderer (#500) - fix: HiDPI layer/mask dimensions (#502) - fix: transformed rectangular clips (#503) - fix: recording stroke rectangles under transforms (#498) - fix: recording clips were no-ops (#499) - fix: recording ClipRoundRect transform parity (#499+#503 interaction)
fix: remove orphaned gogpu/ui dep + docs ARCHITECTURE.md (ADR-067) * chore: update examples to gg v0.52.0, gogpu v0.52.0, gpucontext v0.27.0 * docs: update ARCHITECTURE.md for ADR-065/066/067 (compositor delegation, damage pipeline) * fix: remove orphaned gogpu/ui dependency from go.mod tmp/third_party_baseline and tmp/waviness_demo had no own go.mod, causing go mod tidy to pull gogpu and ui into gg's module scope. gg is a pure drawing library — must not depend on gogpu or ui. * docs: add CHANGELOG entry for v0.52.1
refactor: compositor architecture migration (ADR-067) Move compositor ownership from gg to gogpu: - Remove preserveContent from GPURenderSession (compositor decides LoadOp) - Delegate MSAA overlay compositing via SurfaceCompositor interface - Per-frame compositor via GPURenderTarget.Compositor field - selectBaseLayer uses target.PreserveContent (not frameRendered) - shouldPreserveSurface checks compositor.ShouldPreserveContent() - Legacy fallback preserved for standalone gg without gogpu - Tests updated for new compositor signal path Enterprise pattern: drawing library receives compositor context per-frame, same as Chromium PlaybackToCanvas, Flutter ScopedFrame, GTK4 GSK render.
PreviousNext