Lines Matching refs:rand
109 static SkIRect randRect(SkRandom& rand) { in randRect() argument
110 int x = rand.nextU() % W; in randRect()
111 int y = rand.nextU() % H; in randRect()
112 int w = rand.nextU() % W; in randRect()
113 int h = rand.nextU() % H; in randRect()
117 static void randRgn(SkRandom& rand, SkRegion* rgn, int n) { in randRgn() argument
120 rgn->op(randRect(rand), SkRegion::kUnion_Op); in randRgn()
194 SkRandom rand; in test_proc() local
197 randRgn(rand, &outer, 8); in test_proc()
199 randRgn(rand, &inner, 2); in test_proc()
204 static void rand_rect(SkIRect* rect, SkRandom& rand) { in rand_rect() argument
207 rect->set(rand.nextU() >> shift, rand.nextU() >> shift, in rand_rect()
208 rand.nextU() >> shift, rand.nextU() >> shift); in rand_rect()
248 SkRandom rand; in DEF_TEST() local
255 rand_rect(&rect[j], rand); in DEF_TEST()