Promote stroke draw pad destination task

This commit is contained in:
2026-06-13 23:08:28 +02:00
parent 1d3d524d3b
commit cef140842a

View File

@@ -783,6 +783,34 @@ Validation:
ctest --preset desktop-fast --build-config Debug -R "pp_paint_renderer_compositor|pp_paint_renderer_stroke_execution" --output-onfailure
```
### STR-027 - Extract Stroke Draw Pad Destination Dispatch
Status: Ready
Score: +1 renderer boundary and OpenGL parity
Debt: `DEBT-0036`
Scope: `src/canvas.cpp`, `src/legacy_canvas_stroke_execution_services.h`, `tests/paint_renderer/compositor_tests.cpp`
Goal:
Move the inline pad-stroke destination texture dispatch lambda in
`Canvas::stroke_draw()` into a retained helper so the pad branch keeps only
concrete texture wiring and copy timing.
Done Checks:
- `Canvas::stroke_draw()` no longer contains the inline pad-stroke destination
texture dispatch lambda.
- Regression coverage proves the extracted helper preserves pad destination
bind/unbind order.
- `docs/modernization/debt.md` records the reduced pad-stroke dispatch
surface.
Validation:
```powershell
ctest --preset desktop-fast --build-config Debug -R "pp_paint_renderer_compositor|pp_paint_renderer_stroke_execution" --output-onfailure
```
Progress Notes:
- 2026-06-13: `NodeStrokePreview::draw_stroke_immediate()` now routes final