Lines Matching refs:p0
28 void PatchWriter::chopAndWriteQuads(float2 p0, float2 p1, float2 p2, int numPatches) { in chopAndWriteQuads() argument
31 MiddleOutPolygonTriangulator innerTriangulator(numPatches, to_skpoint(p0)); in chopAndWriteQuads()
35 float4 ab = mix(p0.xyxy(), p1.xyxy(), T); in chopAndWriteQuads()
41 CubicPatch(*this) << QuadToCubic{p0, ab.lo, abc.lo}; // Write the 1st quad. in chopAndWriteQuads()
43 TrianglePatch(*this) << p0 << abc.lo << abc.hi; in chopAndWriteQuads()
49 std::tie(p0, p1) = {abc.hi, bc.hi}; // Save the 3rd quad. in chopAndWriteQuads()
53 float2 ab = (p0 + p1) * .5f; in chopAndWriteQuads()
57 CubicPatch(*this) << QuadToCubic{p0, ab, abc}; // Write the 1st quad. in chopAndWriteQuads()
59 TrianglePatch(*this) << p0 << abc << p2; in chopAndWriteQuads()
64 CubicPatch(*this) << QuadToCubic{p0, p1, p2}; // Write the single quad. in chopAndWriteQuads()
72 void PatchWriter::chopAndWriteConics(float2 p0, float2 p1, float2 p2, float w, int numPatches) { in chopAndWriteConics() argument
75 MiddleOutPolygonTriangulator innerTriangulator(numPatches, to_skpoint(p0)); in chopAndWriteConics()
77 float4 h0 = float4(p0,1,1); in chopAndWriteConics()
110 void PatchWriter::chopAndWriteCubics(float2 p0, float2 p1, float2 p2, float2 p3, int numPatches) { in chopAndWriteCubics() argument
113 MiddleOutPolygonTriangulator innerTriangulator(numPatches, to_skpoint(p0)); in chopAndWriteCubics()
117 float4 ab = mix(p0.xyxy(), p1.xyxy(), T); in chopAndWriteCubics()
125 CubicPatch(*this) << p0 << ab.lo << abc.lo << abcd.lo; // Write the 1st cubic. in chopAndWriteCubics()
127 TrianglePatch(*this) << p0 << abcd.lo << abcd.hi; in chopAndWriteCubics()
133 std::tie(p0, p1, p2) = {abcd.hi, bcd.hi, cd.hi}; // Save the 3rd cubic. in chopAndWriteCubics()
137 float2 ab = (p0 + p1) * .5f; in chopAndWriteCubics()
144 CubicPatch(*this) << p0 << ab << abc << abcd; // Write the 1st cubic. in chopAndWriteCubics()
146 TrianglePatch(*this) << p0 << abcd << p3; in chopAndWriteCubics()
151 CubicPatch(*this) << p0 << p1 << p2 << p3; // Write the single cubic. in chopAndWriteCubics()