Good feature request!
Shaders are unaware of anything geometric. They are applied across
whatever is being drawn (e.g. rects, paths, text) but the orientation
of the shader is determined solely by the canvas' matrix and the
shader's local matrix, but not by the shape or direction of the shape
being drawn.
I think having shaders follow a stroked polygon would be cool,
changing their orientation as the polygon bent etc, but it is not
something Skia knows how to do today.
mike