test #13
Loading…
Reference in a new issue
No description provided.
Delete branch "test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Extracts everything that isn't rendering out of InkView into InkEngine — page state, transform, undo, palm rejection, pinch, erase, text placement — so a second surface can drive it. InkView keeps its committed-bitmap rendering; LowLatencyInkView wraps a LowLatencyCanvasView and puts wet ink straight into the front buffer. DayScreen picks one per page. The library's two callbacks do not mean what their names suggest, and both of the earlier attempts at this were lost to guessing: - onRedrawRequested fires only when the surface is created or resized. It is not the page-repaint hook and there is no way to ask for one, so a repaint after an erase or a pinch is done from inside onDrawFrontBufferedLayer against our own dirty flag, in SRC mode — the buffer keeps its contents, and blending would leave erased ink behind. - commit() snapshots the front buffer into the view's bitmap rather than re-rendering. So the buffer has to hold the whole page, not just the stroke, or committing throws the page away. - A render asked for before the surface exists is dropped with no callback and nothing that would ask again. Retried on a timer. Wet ink is handed over incrementally, with the joining sample included: repainting the whole stroke each pass gives back the latency this is for, and omitting the join draws it dashed. WetSegmentTest covers both, and the existing 46 ink tests ran unchanged throughout as the safety net. Off by default (Settings → Ink, beside the probe). A front-buffered layer can be refused by a vendor's gralloc with nothing thrown, and ink then goes somewhere that never reaches the screen; a journal that quietly eats handwriting is worse than one that draws a frame late. If renders are asked for and none complete within a second, the surface clears the preference and hands back to the plain view. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>