Lines Matching refs:Rows
32 void GrMesh::init(const SkRect& bounds, int rows, int cols,
34 SkASSERT(rows > 0 && cols > 0);
37 fRows = rows;
41 fCount = (rows + 1) * (cols + 1);
46 fIndexCount = rows * cols * 6;
50 const SkScalar dx = bounds.width() / rows;
53 const SkScalar dtx = texture.width() / rows;
58 for (int x = 0; x <= rows; x++) {
64 if (y < cols && x < rows) {
66 *idx++ = index + rows + 1;
70 *idx++ = index + rows + 1;
71 *idx++ = index + rows + 2;
128 const int Rows = 16;
130 SkPoint pts[Rows * Cols];
131 patch.evalPatch(pts, Rows, Cols);
137 SkMeshUtils::Draw(canvas, bm, Rows, Cols, pts, NULL, paint);