Lines Matching refs:subset
349 /** Randomly divides subset into count divs. */
356 // 2) Randomly assign the remaining pixels of the subset to divs.
366 // 2) Assign the remaining subset pixels to fall
376 // 3) Now convert the counts between divs to pixel indices, incorporating the subset's offset.
388 // edge of the image subset, respectively.
393 SkIRect subset;
407 subset.fLeft = random->nextULessThan(desc.fWidth);
408 subset.fRight = random->nextRangeU(subset.fLeft + 1, desc.fWidth);
409 subset.fTop = random->nextULessThan(desc.fHeight);
410 subset.fBottom = random->nextRangeU(subset.fTop + 1, desc.fHeight);
412 subset.setXYWH(0, 0, desc.fWidth, desc.fHeight);
416 lattice.fBounds = ⊂
417 lattice.fXCount = random->nextRangeU(1, subset.width());
418 lattice.fYCount = random->nextRangeU(1, subset.height());
421 init_random_divs(xdivs.get(), lattice.fXCount, subset.fLeft, subset.fRight, random);
422 init_random_divs(ydivs.get(), lattice.fYCount, subset.fTop, subset.fBottom, random);