/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/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()
|
D | SkNxTest.cpp | 150 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()
|
D | ChecksumTest.cpp | 20 data[i] = tweaked[i] = rand.nextU(); in DEF_TEST() 33 tweaked[j] = rand.nextU(); in DEF_TEST()
|
/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()
|
D | beziers.cpp | 36 paint->setColor(rand.nextU()); in rnd_quad() 59 paint->setColor(rand.nextU()); in rnd_cubic()
|
D | addarc.cpp | 50 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()
|
D | shapes.cpp | 109 paint.setColor(rand.nextU() & ~0x808080); in drawShapes() 174 paint.setColor(rand.nextU() & ~0x808080); in drawShapes()
|
/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()
|
D | VertBench.cpp | 102 fColors[i] = rand.nextU() | (0xFF << 24); in VertBench() 213 fColors[i] = rand.nextU() | 0xFF000000; in onDelayedSetup()
|
/third_party/skia/src/gpu/ops/ |
D | AtlasTextOp.cpp | 534 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()
|
D | TriangulatingPathRenderer.cpp | 550 random->nextU(), random->nextU(), random->nextU(), random->nextU()); in GR_DRAW_OP_TEST_DEFINE()
|
/third_party/skia/samplecode/ |
D | SampleClip.cpp | 28 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/ |
D | SkDiscretePathEffect.cpp | 40 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/ |
D | sweep_gradient_talk_lots.cpp | 9 color = rand.nextU() | (0xFF << 24); in draw()
|
D | Bitmap_installPixels_2.cpp | 13 pixels[x] = random.nextU(); in draw()
|
D | drawarcs.cpp | 21 paint.setColor(rand.nextU() | 0xFF000000); in draw()
|