Home
last modified time | relevance | path

Searched refs:nextU (Results 1 – 25 of 103) sorted by relevance

12345

/third_party/skia/include/utils/
DSkRandom.h38 uint32_t nextU() { in nextU() function
46 int32_t nextS() { return (int32_t)this->nextU(); } in nextS()
52 int floatint = 0x3f800000 | (int)(this->nextU() >> 9); in nextF()
70 return this->nextU() >> (32 - bitCount); in nextBits()
80 return this->nextU(); in nextRangeU()
82 return min + this->nextU() % range; in nextRangeU()
113 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool()
146 SkFixed nextUFixed1() { return this->nextU() >> 16; } in nextUFixed1()
/third_party/skia/tests/
DColorTest.cpp48 SkColor colorSrc = r.nextU(); in DEF_TEST()
49 SkColor colorDst = r.nextU(); in DEF_TEST()
66 SkColor colorSrc = r.nextU(); in DEF_TEST()
67 SkColor colorDst = r.nextU(); in DEF_TEST()
DRegionTest.cpp111 int x = rand.nextU() % W; in randRect()
112 int y = rand.nextU() % H; in randRect()
113 int w = rand.nextU() % W; in randRect()
114 int h = rand.nextU() % H; in randRect()
208 rect->setLTRB(rand.nextU() >> shift, rand.nextU() >> shift, in rand_rect()
209 rand.nextU() >> shift, rand.nextU() >> shift); in rand_rect()
DAAClipTest.cpp128 int w = rand.nextU() % n; in rand_rect()
129 int h = rand.nextU() % n; in rand_rect()
134 int count = rand.nextU() % 20; in make_rand_rgn()
253 r->setXYWH(0, 0, rand.nextU() % N, rand.nextU() % N); in rand_irect()
254 int dx = rand.nextU() % (2*N); in rand_irect()
255 int dy = rand.nextU() % (2*N); in rand_irect()
DRandomTest.cpp65 bins[(rand.nextU() >> shift) & 0xff]++; in test_random_byte()
116 unsigned int rnd = rand.nextU(); in test_single_gorilla()
123 unsigned int rnd = rand.nextU(); in test_single_gorilla()
DSkNxTest.cpp150 uint16_t a = rand.nextU() >> 16, in DEF_TEST()
151 b = rand.nextU() >> 16; in DEF_TEST()
317 (uint16_t)(rand.nextU() >> 16), (uint16_t)(rand.nextU() >> 16), in DEF_TEST()
318 (uint16_t)(rand.nextU() >> 16), (uint16_t)(rand.nextU() >> 16), in DEF_TEST()
DChecksumTest.cpp20 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST()
33 tweaked[j] = rand.nextU(); in DEF_TEST()
/third_party/skia/gm/
Dwidebuttcaps.cpp34 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes()
39 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes()
44 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes()
48 strokePaint.setColor(rand->nextU() | 0xff808080); in draw_strokes()
Ddegeneratesegments.cpp322 StyleAndName style = gStyles[(rand.nextU() >> 16) % numStyles]; in onDraw()
323 CapAndName cap = gCaps[(rand.nextU() >> 16) % numCaps]; in onDraw()
324 FillAndName fill = gFills[(rand.nextU() >> 16) % numFills]; in onDraw()
325 unsigned s1 = (rand.nextU() >> 16) % numSegments; in onDraw()
326 unsigned s2 = (rand.nextU() >> 16) % numSegments; in onDraw()
327 unsigned s3 = (rand.nextU() >> 16) % numSegments; in onDraw()
328 unsigned s4 = (rand.nextU() >> 16) % numSegments; in onDraw()
329 unsigned s5 = (rand.nextU() >> 16) % numSegments; in onDraw()
Druntimeshader.cpp565 rand.nextU() | 0xff808080); in onDraw()
571 rand.nextU() | 0xff808080); in onDraw()
577 rand.nextU() | 0xff808080); in onDraw()
583 rand.nextU() | 0xff808080); in onDraw()
589 rand.nextU() | 0xff808080); in onDraw()
595 rand.nextU() | 0xff808080); in onDraw()
601 rand.nextU() | 0xff808080); in onDraw()
607 rand.nextU() | 0xff808080); in onDraw()
Dbeziers.cpp36 paint->setColor(rand.nextU()); in rnd_quad()
59 paint->setColor(rand.nextU()); in rnd_cubic()
Daddarc.cpp50 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
142 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
195 paint.setColor(ToolUtils::color_to_565(rand.nextU() | (0xFF << 24))); in onDraw()
Dshapes.cpp109 paint.setColor(rand.nextU() & ~0x808080); in drawShapes()
174 paint.setColor(rand.nextU() & ~0x808080); in drawShapes()
/third_party/skia/bench/
DRegionBench.cpp83 int x = rand.nextU() % W; in randrect()
84 int y = rand.nextU() % H; in randrect()
85 int w = rand.nextU() % W; in randrect()
86 int h = rand.nextU() % H; in randrect()
DRectBench.cpp67 int x = rand.nextU() % W; in onDelayedSetup()
68 int y = rand.nextU() % H; in onDelayedSetup()
69 int w = rand.nextU() % W; in onDelayedSetup()
70 int h = rand.nextU() % H; in onDelayedSetup()
78 fColors[i] = rand.nextU() | 0xFF808080; in onDelayedSetup()
313 alpha = rand.nextU() & 255; in onDraw()
DTopoSortBench.cpp36 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup()
39 int dep = fRand.nextU() % i; in onDelayedSetup()
DColorPrivBench.cpp31 fSrcs[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup()
32 fDsts[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup()
DVertBench.cpp102 fColors[i] = rand.nextU() | (0xFF << 24); in VertBench()
213 fColors[i] = rand.nextU() | 0xFF000000; in onDelayedSetup()
/third_party/skia/src/gpu/ops/
DAtlasTextOp.cpp534 skPaint.setColor(random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
548 int xPos = (random->nextU() % 2) * 2 - 1; in GR_DRAW_OP_TEST_DEFINE()
549 int yPos = (random->nextU() % 2) * 2 - 1; in GR_DRAW_OP_TEST_DEFINE()
550 int xInt = (random->nextU() % kMaxTrans) * xPos; in GR_DRAW_OP_TEST_DEFINE()
551 int yInt = (random->nextU() % kMaxTrans) * yPos; in GR_DRAW_OP_TEST_DEFINE()
DTriangulatingPathRenderer.cpp550 random->nextU(), random->nextU(), random->nextU(), random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
/third_party/skia/samplecode/
DSampleClip.cpp28 paint.setColor((SK_A32_MASK << SK_A32_SHIFT) | rand.nextU()); in show_text()
44 paint.setColor(rand.nextU()); in show_fill()
49 paint.setColor(rand.nextU()); in show_fill()
71 paint.setColor(rand.nextU()); in show_stroke()
76 paint.setColor(rand.nextU()); in show_stroke()
83 paint.setColor(rand.nextU()); in show_stroke()
/third_party/skia/src/effects/
DSkDiscretePathEffect.cpp40 uint32_t nextU() { uint32_t r = fSeed * kMul + kAdd; fSeed = r; return r; } in nextU() function in LCGRandom
44 int32_t nextS() { return (int32_t)this->nextU(); } in nextS()
/third_party/skia/docs/examples/
Dsweep_gradient_talk_lots.cpp9 color = rand.nextU() | (0xFF << 24); in draw()
DBitmap_installPixels_2.cpp13 pixels[x] = random.nextU(); in draw()
Ddrawarcs.cpp21 paint.setColor(rand.nextU() | 0xFF000000); in draw()

12345