• Home
  • Raw
  • Download

Lines Matching refs:rand

48         SkRandom rand;  in onDraw()  local
51 fTree->insert(reinterpret_cast<void*>(j), fProc(rand, j, NUM_BUILD_RECTS), in onDraw()
89 SkRandom rand; in BBoxQueryBench() local
91 fTree->insert(reinterpret_cast<void*>(j), fProc(rand, j, in BBoxQueryBench()
105 SkRandom rand; in onDraw() local
111 query.fLeft = rand.nextU() % GENERATE_EXTENTS; in onDraw()
112 query.fTop = rand.nextU() % GENERATE_EXTENTS; in onDraw()
117 query.fLeft = rand.nextU() % GENERATE_EXTENTS; in onDraw()
118 query.fTop = rand.nextU() % GENERATE_EXTENTS; in onDraw()
130 query.fLeft = rand.nextU() % GENERATE_EXTENTS; in onDraw()
131 query.fTop = rand.nextU() % GENERATE_EXTENTS; in onDraw()
132 query.fRight = query.fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 2); in onDraw()
133 query.fBottom = query.fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 2); in onDraw()
163 static inline SkIRect make_point_rects(SkRandom& rand, int index, int numRects) { in make_point_rects() argument
165 out.fLeft = rand.nextU() % GENERATE_EXTENTS; in make_point_rects()
166 out.fTop = rand.nextU() % GENERATE_EXTENTS; in make_point_rects()
172 static inline SkIRect make_random_rects(SkRandom& rand, int index, int numRects) { in make_random_rects() argument
174 out.fLeft = rand.nextS() % GENERATE_EXTENTS; in make_random_rects()
175 out.fTop = rand.nextS() % GENERATE_EXTENTS; in make_random_rects()
176 out.fRight = out.fLeft + 1 + rand.nextU() % (GENERATE_EXTENTS / 5); in make_random_rects()
177 out.fBottom = out.fTop + 1 + rand.nextU() % (GENERATE_EXTENTS / 5); in make_random_rects()
181 static inline SkIRect make_large_rects(SkRandom& rand, int index, int numRects) { in make_large_rects() argument
183 out.fLeft = rand.nextU() % GENERATE_EXTENTS; in make_large_rects()
184 out.fTop = rand.nextU() % GENERATE_EXTENTS; in make_large_rects()