/third_party/skia/include/utils/ |
D | SkRandom.h | 38 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/flutter/skia/include/utils/ |
D | SkRandom.h | 38 uint32_t nextU() { in nextU() function 46 int32_t nextS() { return (int32_t)this->nextU(); } in nextS() 52 unsigned int floatint = 0x3f800000 | (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/flutter/skia/samplecode/ |
D | SampleClip.cpp | 27 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() 73 paint.setColor(rand.nextU()); in show_stroke() 78 paint.setColor(rand.nextU()); in show_stroke() 86 paint.setColor(rand.nextU()); in show_stroke()
|
/third_party/flutter/skia/tests/ |
D | ColorTest.cpp | 48 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()
|
D | RegionTest.cpp | 111 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->set(rand.nextU() >> shift, rand.nextU() >> shift, in rand_rect() 209 rand.nextU() >> shift, rand.nextU() >> shift); in rand_rect()
|
D | AAClipTest.cpp | 107 int w = rand.nextU() % n; in rand_rect() 108 int h = rand.nextU() % n; in rand_rect() 113 int count = rand.nextU() % 20; in make_rand_rgn() 249 r->setXYWH(0, 0, rand.nextU() % N, rand.nextU() % N); in rand_irect() 250 int dx = rand.nextU() % (2*N); in rand_irect() 251 int dy = rand.nextU() % (2*N); in rand_irect()
|
D | RandomTest.cpp | 65 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()
|
D | ChecksumTest.cpp | 20 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST() 33 tweaked[j] = rand.nextU(); in DEF_TEST()
|
/third_party/skia/tests/ |
D | ColorTest.cpp | 48 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()
|
D | RegionTest.cpp | 111 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()
|
D | AAClipTest.cpp | 128 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()
|
D | RandomTest.cpp | 65 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()
|
/third_party/flutter/skia/src/gpu/text/ |
D | GrTextContext.cpp | 244 skPaint.setColor(random->nextU()); in GR_DRAW_OP_TEST_DEFINE() 258 int xPos = (random->nextU() % 2) * 2 - 1; in GR_DRAW_OP_TEST_DEFINE() 259 int yPos = (random->nextU() % 2) * 2 - 1; in GR_DRAW_OP_TEST_DEFINE() 260 int xInt = (random->nextU() % kMaxTrans) * xPos; in GR_DRAW_OP_TEST_DEFINE() 261 int yInt = (random->nextU() % kMaxTrans) * yPos; in GR_DRAW_OP_TEST_DEFINE()
|
/third_party/skia/gm/ |
D | widebuttcaps.cpp | 34 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()
|
D | degeneratesegments.cpp | 322 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()
|
D | runtimeshader.cpp | 565 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()
|
/third_party/flutter/skia/gm/ |
D | degeneratesegments.cpp | 322 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() 326 unsigned s1 = (rand.nextU() >> 16) % numSegments; in onDraw() 327 unsigned s2 = (rand.nextU() >> 16) % numSegments; in onDraw() 328 unsigned s3 = (rand.nextU() >> 16) % numSegments; in onDraw() 329 unsigned s4 = (rand.nextU() >> 16) % numSegments; in onDraw() 330 unsigned s5 = (rand.nextU() >> 16) % numSegments; in onDraw()
|
/third_party/flutter/skia/bench/ |
D | RegionBench.cpp | 83 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()
|
D | RectBench.cpp | 67 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()
|
D | TopoSortBench.cpp | 36 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup() 39 int dep = fRand.nextU() % i; in onDelayedSetup()
|
D | ColorPrivBench.cpp | 31 fSrcs[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup() 32 fDsts[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup()
|
/third_party/skia/bench/ |
D | RegionBench.cpp | 83 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()
|
D | RectBench.cpp | 67 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()
|
D | TopoSortBench.cpp | 36 int numEdges = fRand.nextU() % (kMaxEdges+1); in onDelayedSetup() 39 int dep = fRand.nextU() % i; in onDelayedSetup()
|
D | ColorPrivBench.cpp | 31 fSrcs[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup() 32 fDsts[i] = SkPreMultiplyColor(rand.nextU()); in onDelayedSetup()
|