After applying hints & taking fast paths... Stroking a path involves lowering it to line segments & clipping it retrieving the bbox, then using that same scanline algorithm to split the path into scanlines our pipeline infrastructure can rasterize. With or without antialiasing.
There's a method for matrix-transformed clipping tests, & others for different fills. One matrix-transforms or scales masks.