From cc1dd0dd954503b712aca22d8c714fc94fbc0c9a Mon Sep 17 00:00:00 2001 From: omigamedev Date: Sun, 14 Jun 2026 00:06:22 +0200 Subject: [PATCH] Promote preview mixer pass state task --- docs/modernization/tasks.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/modernization/tasks.md b/docs/modernization/tasks.md index da6152f..6028562 100644 --- a/docs/modernization/tasks.md +++ b/docs/modernization/tasks.md @@ -1930,6 +1930,34 @@ ctest --preset desktop-fast --build-config Debug -R "pp_paint_renderer_composito cmake --build --preset windows-msvc-default --config Debug --target PanoPainter ``` +### STR-043 - Extract Preview Mixer Pass State And Copy Ordering + +Status: Ready +Score: no score movement +Debt: `DEBT-0036` +Scope: `src/node_stroke_preview.cpp`, `tests/paint_renderer/compositor_tests.cpp` + +Goal: + +Move the remaining `NodeStrokePreview::stroke_draw_samples()` mixer-pass state +and copy ordering into retained helpers so the callsite keeps only the final +sample dispatch. + +Done Checks: + +- `NodeStrokePreview::stroke_draw_samples()` no longer owns the mixer-pass + state/copy ordering inline. +- Regression coverage proves the helper preserves mixer framebuffer binding + and preview copy behavior. +- `docs/modernization/debt.md` records the reduced preview mixer-pass surface. + +Validation: + +```powershell +ctest --preset desktop-fast --build-config Debug -R "pp_paint_renderer_compositor|pp_paint_renderer_stroke_execution" --output-onfailure +cmake --build --preset windows-msvc-default --config Debug --target PanoPainter +``` + ### STR-010 - Extract Remaining Draw Merge Composite Orchestration ### STR-016 - Extract Draw Merge Layer Composite Execution