From 2053c55bd677d7101aeaacce7e3f52d11f98075c Mon Sep 17 00:00:00 2001 From: omigamedev Date: Sun, 14 Jun 2026 00:03:47 +0200 Subject: [PATCH] Promote preview main live sample wrapping task --- docs/modernization/tasks.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/modernization/tasks.md b/docs/modernization/tasks.md index fb7e6d7..2bb80bd 100644 --- a/docs/modernization/tasks.md +++ b/docs/modernization/tasks.md @@ -1899,6 +1899,35 @@ ctest --preset desktop-fast --build-config Debug -R "pp_paint_renderer_composito cmake --build --preset windows-msvc-default --config Debug --target PanoPainter ``` +### STR-042 - Extract Preview Main Live Sample Callback Wrapping + +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::make_stroke_draw_immediate_main_live_pass_request()` +sample/copy callback wrapping into retained helpers so the request builder only +forwards concrete preview state. + +Done Checks: + +- `make_stroke_draw_immediate_main_live_pass_request()` no longer owns the + live-pass sample/copy callback wrapping inline. +- Regression coverage proves the helper preserves live-pass sample ordering and + preview copy behavior. +- `docs/modernization/debt.md` records the reduced preview main-live-pass + callback 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