Lines Matching defs:numPatches
28 void PatchWriter::chopAndWriteQuads(float2 p0, float2 p1, float2 p2, int numPatches) {
31 MiddleOutPolygonTriangulator innerTriangulator(numPatches, to_skpoint(p0));
32 for (; numPatches >= 3; numPatches -= 2) {
34 float4 T = float4(1,1,2,2) / numPatches;
51 if (numPatches == 2) {
63 SkASSERT(numPatches == 1);
72 void PatchWriter::chopAndWriteConics(float2 p0, float2 p1, float2 p2, float w, int numPatches) {
75 MiddleOutPolygonTriangulator innerTriangulator(numPatches, to_skpoint(p0));
80 for (; numPatches >= 2; --numPatches) {
82 float T = 1.f/numPatches;
99 SkASSERT(numPatches == 1);
110 void PatchWriter::chopAndWriteCubics(float2 p0, float2 p1, float2 p2, float2 p3, int numPatches) {
113 MiddleOutPolygonTriangulator innerTriangulator(numPatches, to_skpoint(p0));
114 for (; numPatches >= 3; numPatches -= 2) {
116 float4 T = float4(1,1,2,2) / numPatches;
135 if (numPatches == 2) {
150 SkASSERT(numPatches == 1);