• Home
  • Raw
  • Download

Lines Matching refs:nu

81 static void eval_sheet(const SkPoint edge[], int nu, int nv, int iu, int iv,  in eval_sheet()  argument
84 const int TR = nu; in eval_sheet()
86 const int BL = BR + nu; in eval_sheet()
88 SkScalar u = SkIntToScalar(iu) / nu; in eval_sheet()
100 v * edge[BR+nu-iu].fX + (1 - u) * edge[BL+nv-iv].fX - x0; in eval_sheet()
102 v * edge[BR+nu-iu].fY + (1 - u) * edge[BL+nv-iv].fY - y0; in eval_sheet()
110 void Patch::draw(SkCanvas* canvas, const SkPaint& paint, int nu, int nv, in draw() argument
112 if (nu < 1 || nv < 1) { in draw()
116 int i, npts = (nu + nv) * 2; in draw()
119 SkPoint* edge1 = edge0 + nu; in draw()
121 SkPoint* edge3 = edge2 + nu; in draw()
124 eval_patch_edge(fPts + 0, edge0, nu); in draw()
126 eval_patch_edge(fPts + 6, edge2, nu); in draw()
134 int row, vertCount = (nu + 1) * (nv + 1); in draw()
139 memcpy(verts, edge0, (nu + 1) * sizeof(SkPoint)); in draw()
143 r += nu + 1; in draw()
145 for (int col = 1; col < nu; col++) { in draw()
146 eval_sheet(edge0, nu, nv, col, row, &r[col]); in draw()
148 r[nu] = edge1[row]; in draw()
151 SkPoint* last = verts + nv * (nu + 1); in draw()
152 for (i = 0; i <= nu; i++) { in draw()
153 last[i] = edge2[nu - i]; in draw()
158 int stripCount = (nu + 1) * 2; in draw()
165 const SkScalar ds = SK_Scalar1 * fW / nu; in draw()
170 SkPoint* lower = r + nu + 1; in draw()
173 for (i = 0; i <= nu; i++) { in draw()
190 static void drawpatches(SkCanvas* canvas, const SkPaint& paint, int nu, int nv, in drawpatches() argument
194 patch->draw(canvas, paint, nu, nv, false, false); in drawpatches()
196 patch->draw(canvas, paint, nu, nv, true, false); in drawpatches()
198 patch->draw(canvas, paint, nu, nv, false, true); in drawpatches()
200 patch->draw(canvas, paint, nu, nv, true, true); in drawpatches()
251 const int nu = 10; in onDrawContent() local
272 drawpatches(canvas, paint, nu, nv, &patch); in onDrawContent()
294 drawpatches(canvas, paint, nu, nv, &patch); in onDrawContent()