Lines Matching refs:nv
81 static void eval_sheet(const SkPoint edge[], int nu, int nv, int iu, int iv, in eval_sheet() argument
85 const int BR = TR + nv; in eval_sheet()
89 SkScalar v = SkIntToScalar(iv) / nv; in eval_sheet()
104 SkScalarMul(SK_Scalar1 - u, edge[BL+nv-iv].fX) - x0; in eval_sheet()
108 SkScalarMul(SK_Scalar1 - u, edge[BL+nv-iv].fY) - y0; in eval_sheet()
128 void Patch::draw(SkCanvas* canvas, const SkPaint& paint, int nu, int nv, in draw() argument
130 if (nu < 1 || nv < 1) { in draw()
134 int i, npts = (nu + nv) * 2; in draw()
138 SkPoint* edge2 = edge1 + nv; in draw()
143 eval_patch_edge(fPts + 3, edge1, nv); in draw()
145 eval_patch_edge(fPts + 9, edge3, nv); in draw()
146 edge3[nv] = edge0[0]; // the last shall be first in draw()
152 int row, vertCount = (nu + 1) * (nv + 1); in draw()
160 for (row = 1; row < nv; row++) { in draw()
162 r[0] = edge3[nv - row]; in draw()
164 eval_sheet(edge0, nu, nv, col, row, &r[col]); in draw()
169 SkPoint* last = verts + nv * (nu + 1); in draw()
184 const SkScalar dt = SK_Scalar1 * fH / nv; in draw()
186 for (row = 0; row < nv; row++) { in draw()
208 static void drawpatches(SkCanvas* canvas, const SkPaint& paint, int nu, int nv, in drawpatches() argument
212 patch->draw(canvas, paint, nu, nv, false, false); in drawpatches()
214 patch->draw(canvas, paint, nu, nv, true, false); in drawpatches()
216 patch->draw(canvas, paint, nu, nv, false, true); in drawpatches()
218 patch->draw(canvas, paint, nu, nv, true, true); in drawpatches()
275 const int nv = 10; in onDrawContent() local
295 drawpatches(canvas, paint, nu, nv, &patch); in onDrawContent()
319 drawpatches(canvas, paint, nu, nv, &patch); in onDrawContent()