The Canvas host registered nothing on first use: every frame pumped Lanczos
copies, the window reset meshes and copies, an evicted asset forgot its
copies, and the host polled the test driver directly, so even a box carried
the Lanczos cache, the resampler, page meshes and the test driver. Now the
first smooth copy registers the pump, close and forget (canvas_window), the
first warped picture registers its mesh batches, smooth copies are reachable
only once a page asks a picture's size (as on the desktop), and test input
comes through the frame driver. canvas_raster and page_mesh drop their unused
image imports.
Paint queues warped pictures through their own emitter, so no host links its
mesh rasterizer for a program that warps none.
Web profile (C files, C bytes, page bytes), before -> after:
box 74, 990 402, 1 388 955 -> 70, 828 685, 1 346 817
button 85, 1 238 728, 1 598 206 -> 79, 969 324, 1 487 512
hello checked modules 84 -> 80; an empty window stays at 10.
make pay-per-import-test checks the web window, hello, box, button and
image next to the desktop cases.
Co-Authored-By: Claude Opus 5.5 <[email protected]>