Lines Matching refs:random

426                              SkRandom* random) {
429 // Not terribly efficient alg for generating random divs:
445 int entry = random->nextULessThan(count + 1);
461 // We loop because our random lattice code can produce an invalid lattice in the case where
470 dims.fWidth = random->nextRangeU(1, 1000);
471 dims.fHeight = random->nextRangeU(1, 1000);
472 GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin
488 if (random->nextBool()) {
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);
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);
507 bool hasFlags = random->nextBool();
513 flags[i] = random->nextBool() ? SkCanvas::Lattice::kTransparent
524 dst.fLeft = random->nextRangeScalar(-2000.5f, 1000.f);
525 dst.fTop = random->nextRangeScalar(-2000.5f, 1000.f);
526 dst.fRight = dst.fLeft + random->nextRangeScalar(0.5f, 1000.f);
527 dst.fBottom = dst.fTop + random->nextRangeScalar(0.5f, 1000.f);
529 SkMatrix viewMatrix = GrTest::TestMatrixPreservesRightAngles(random);
530 auto csxf = GrTest::TestColorXform(random);
532 random->nextBool() ? GrSamplerState::Filter::kNearest : GrSamplerState::Filter::kLinear;