Lines Matching refs:rand
39 SkRandom rand;
42 rects[i] = fProc(rand, i, NUM_BUILD_RECTS);
72 SkRandom rand;
75 rects[i] = fProc(rand, i, NUM_QUERY_RECTS);
81 SkRandom rand;
85 query.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS);
86 query.fTop = rand.nextRangeF(0, GENERATE_EXTENTS);
87 query.fRight = query.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2);
88 query.fBottom = query.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/2);
99 static inline SkRect make_XYordered_rects(SkRandom& rand, int index, int numRects) {
103 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3);
104 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3);
107 static inline SkRect make_YXordered_rects(SkRandom& rand, int index, int numRects) {
111 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3);
112 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/3);
116 static inline SkRect make_random_rects(SkRandom& rand, int index, int numRects) {
118 out.fLeft = rand.nextRangeF(0, GENERATE_EXTENTS);
119 out.fTop = rand.nextRangeF(0, GENERATE_EXTENTS);
120 out.fRight = out.fLeft + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5);
121 out.fBottom = out.fTop + 1 + rand.nextRangeF(0, GENERATE_EXTENTS/5);