Lines Matching refs:nu
80 static void eval_sheet(const SkPoint edge[], int nu, int nv, int iu, int iv, in eval_sheet() argument
83 const int TR = nu; in eval_sheet()
85 const int BL = BR + nu; in eval_sheet()
87 SkScalar u = SkIntToScalar(iu) / nu; in eval_sheet()
99 v * edge[BR+nu-iu].fX + (1 - u) * edge[BL+nv-iv].fX - x0; in eval_sheet()
101 v * edge[BR+nu-iu].fY + (1 - u) * edge[BL+nv-iv].fY - y0; in eval_sheet()
109 void Patch::draw(SkCanvas* canvas, const SkPaint& paint, int nu, int nv, in draw() argument
111 if (nu < 1 || nv < 1) { in draw()
115 int i, npts = (nu + nv) * 2; in draw()
118 SkPoint* edge1 = edge0 + nu; in draw()
120 SkPoint* edge3 = edge2 + nu; in draw()
123 eval_patch_edge(fPts + 0, edge0, nu); in draw()
125 eval_patch_edge(fPts + 6, edge2, nu); in draw()
133 int row, vertCount = (nu + 1) * (nv + 1); in draw()
138 memcpy(verts, edge0, (nu + 1) * sizeof(SkPoint)); in draw()
142 r += nu + 1; in draw()
144 for (int col = 1; col < nu; col++) { in draw()
145 eval_sheet(edge0, nu, nv, col, row, &r[col]); in draw()
147 r[nu] = edge1[row]; in draw()
150 SkPoint* last = verts + nv * (nu + 1); in draw()
151 for (i = 0; i <= nu; i++) { in draw()
152 last[i] = edge2[nu - i]; in draw()
157 int stripCount = (nu + 1) * 2; in draw()
164 const SkScalar ds = SK_Scalar1 * fW / nu; in draw()
169 SkPoint* lower = r + nu + 1; in draw()
172 for (i = 0; i <= nu; i++) { in draw()
189 static void drawpatches(SkCanvas* canvas, const SkPaint& paint, int nu, int nv, in drawpatches() argument
193 patch->draw(canvas, paint, nu, nv, false, false); in drawpatches()
195 patch->draw(canvas, paint, nu, nv, true, false); in drawpatches()
197 patch->draw(canvas, paint, nu, nv, false, true); in drawpatches()
199 patch->draw(canvas, paint, nu, nv, true, true); in drawpatches()
249 const int nu = 10; in onDrawContent() local
270 drawpatches(canvas, paint, nu, nv, &patch); in onDrawContent()
292 drawpatches(canvas, paint, nu, nv, &patch); in onDrawContent()