Part of https://github.com/flutter/flutter/issues/130921. Currently you can only rasterize triangles. Add a way to specify the PrimitiveType and PolygonMode when encoding commands in the RenderPass.