Extract preview pass sequence request

This commit is contained in:
2026-06-13 23:53:26 +02:00
parent 3672f9a514
commit 3e7a9d5cab
4 changed files with 118 additions and 57 deletions

View File

@@ -169,6 +169,10 @@ agent or engineer to remove them without reconstructing context from chat.
now routes the dual-pass live body through
`execute_stroke_draw_immediate_dual_pass(...)`; the retained path still owns
the concrete frame mutation, shader setup, and preview copy behavior.
- 2026-06-13: DEBT-0036 was narrowed again. `NodeStrokePreview::draw_stroke_immediate()`
now routes the pass-sequence request assembly through
`make_stroke_draw_immediate_pass_sequence_request(...)`; the retained path
still owns the concrete preview copy behavior and final-state restoration.
- 2026-06-13: DEBT-0036 was narrowed again. `Canvas::draw_merge()` now routes
the remaining per-layer branch orchestration through
`execute_legacy_canvas_draw_merge_layer_composite(...)`; the retained path

View File

@@ -1775,6 +1775,37 @@ ctest --preset desktop-fast --build-config Debug -R "pp_paint_renderer_composito
cmake --build --preset windows-msvc-default --config Debug --target PanoPainter
```
### STR-038 - Extract Preview Pass Sequence Request Assembly
Status: Done
Score: no score movement
Debt: `DEBT-0036`
Scope: `src/node_stroke_preview.cpp`, `tests/paint_renderer/compositor_tests.cpp`
Goal:
Move the remaining `NodeStrokePreview::draw_stroke_immediate()` pass-sequence
request assembly into a retained helper so the callsite keeps only the
sequence wrapper and final state restoration.
Closeout: `3672f9a5`
Done Checks:
- `NodeStrokePreview::draw_stroke_immediate()` no longer owns the pass-sequence
request object inline.
- Regression coverage proves the helper preserves dual/main sequence ordering
and copy behavior.
- `docs/modernization/debt.md` records the reduced preview pass-sequence
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