Lines Matching refs:subset
424 /** Randomly divides subset into count divs. */
431 // 2) Randomly assign the remaining pixels of the subset to divs.
441 // 2) Assign the remaining subset pixels to fall
451 // 3) Now convert the counts between divs to pixel indices, incorporating the subset's offset.
463 // edge of the image subset, respectively.
468 SkIRect subset;
489 subset.fLeft = random->nextULessThan(dims.fWidth);
490 subset.fRight = random->nextRangeU(subset.fLeft + 1, dims.fWidth);
491 subset.fTop = random->nextULessThan(dims.fHeight);
492 subset.fBottom = random->nextRangeU(subset.fTop + 1, dims.fHeight);
494 subset.setXYWH(0, 0, dims.fWidth, dims.fHeight);
498 lattice.fBounds = ⊂
499 lattice.fXCount = random->nextRangeU(1, subset.width());
500 lattice.fYCount = random->nextRangeU(1, subset.height());
503 init_random_divs(xdivs.get(), lattice.fXCount, subset.fLeft, subset.fRight, random);
504 init_random_divs(ydivs.get(), lattice.fYCount, subset.fTop, subset.fBottom, random);