Lines Matching refs:nv
80 static void eval_sheet(const SkPoint edge[], int nu, int nv, int iu, int iv,
84 const int BR = TR + nv;
88 SkScalar v = SkIntToScalar(iv) / nv;
103 SkScalarMul(SK_Scalar1 - u, edge[BL+nv-iv].fX) - x0;
107 SkScalarMul(SK_Scalar1 - u, edge[BL+nv-iv].fY) - y0;
127 void Patch::draw(SkCanvas* canvas, const SkPaint& paint, int nu, int nv,
129 if (nu < 1 || nv < 1) {
133 int i, npts = (nu + nv) * 2;
137 SkPoint* edge2 = edge1 + nv;
142 eval_patch_edge(fPts + 3, edge1, nv);
144 eval_patch_edge(fPts + 9, edge3, nv);
145 edge3[nv] = edge0[0]; // the last shall be first
151 int row, vertCount = (nu + 1) * (nv + 1);
159 for (row = 1; row < nv; row++) {
161 r[0] = edge3[nv - row];
163 eval_sheet(edge0, nu, nv, col, row, &r[col]);
168 SkPoint* last = verts + nv * (nu + 1);
183 const SkScalar dt = SK_Scalar1 * fH / nv;
185 for (row = 0; row < nv; row++) {
207 static void drawpatches(SkCanvas* canvas, const SkPaint& paint, int nu, int nv,
211 patch->draw(canvas, paint, nu, nv, false, false);
213 patch->draw(canvas, paint, nu, nv, true, false);
215 patch->draw(canvas, paint, nu, nv, false, true);
217 patch->draw(canvas, paint, nu, nv, true, true);
273 const int nv = 10;
293 drawpatches(canvas, paint, nu, nv, &patch);
318 drawpatches(canvas, paint, nu, nv, &patch);