/third_party/skia/tools/ |
D | random_parse_path.cpp | 37 int reps = rand->nextRangeU(0, 2); in add_white() 39 int index = rand->nextRangeU(0, (int) SK_ARRAY_COUNT(gWhiteSpace) - 1); in add_white() 70 int legalIndex = rand->nextRangeU(0, (int) SK_ARRAY_COUNT(gLegal) - 1); in MakeRandomParsePathPiece() 75 int reps = rand->nextRangeU(1, 3); in MakeRandomParsePathPiece() 89 atom.appendU32(rand->nextRangeU(0, 1)); in MakeRandomParsePathPiece() 91 atom.appendU32(rand->nextRangeU(0, 1)); in MakeRandomParsePathPiece()
|
D | DDLTileHelper.cpp | 250 int32_t lPad = addRandomPaddingToDst ? rand.nextRangeU(0, kMaxPad) : 0; in DDLTileHelper() 251 int32_t tPad = addRandomPaddingToDst ? rand.nextRangeU(0, kMaxPad) : 0; in DDLTileHelper() 252 int32_t rPad = addRandomPaddingToDst ? rand.nextRangeU(0, kMaxPad) : 0; in DDLTileHelper() 253 int32_t bPad = addRandomPaddingToDst ? rand.nextRangeU(0, kMaxPad) : 0; in DDLTileHelper()
|
/third_party/skia/docs/examples/ |
D | Bitmap_allocN32Pixels.cpp | 14 uint32_t w = random.nextRangeU(4, 32); in draw() 15 uint32_t cx = random.nextRangeU(0, 64 - w); in draw() 16 uint32_t h = random.nextRangeU(4, 32); in draw() 17 uint32_t cy = random.nextRangeU(0, 64 - h); in draw()
|
/third_party/skia/src/gpu/effects/ |
D | GrGaussianConvolutionFragmentProcessor.cpp | 252 static_cast<int>(d->fRandom->nextRangeU(0, view.width() - 1)), in TestCreate() 253 static_cast<int>(d->fRandom->nextRangeU(0, view.height() - 1)), in TestCreate() 254 static_cast<int>(d->fRandom->nextRangeU(0, view.width() - 1)), in TestCreate() 255 static_cast<int>(d->fRandom->nextRangeU(0, view.height() - 1)), in TestCreate() 261 int radius = d->fRandom->nextRangeU(1, kMaxKernelRadius); in TestCreate() 267 static_cast<int>(d->fRandom->nextRangeU(0, view.width() - 1)), in TestCreate() 268 static_cast<int>(d->fRandom->nextRangeU(0, view.height() - 1)), in TestCreate() 269 static_cast<int>(d->fRandom->nextRangeU(0, view.width() - 1)), in TestCreate() 270 static_cast<int>(d->fRandom->nextRangeU(0, view.height() - 1)), in TestCreate()
|
D | GrMatrixConvolutionEffect.cpp | 355 int width = d->fRandom->nextRangeU(1, kMaxTestKernelSize); in TestCreate() 356 int height = d->fRandom->nextRangeU(1, kMaxTestKernelSize / width); in TestCreate() 365 uint32_t kernalOffsetX = d->fRandom->nextRangeU(0, kernelSize.width()); in TestCreate() 366 uint32_t kernalOffsetY = d->fRandom->nextRangeU(0, kernelSize.height()); in TestCreate() 369 uint32_t boundsX = d->fRandom->nextRangeU(0, view.width()); in TestCreate() 370 uint32_t boundsY = d->fRandom->nextRangeU(0, view.height()); in TestCreate() 371 uint32_t boundsW = d->fRandom->nextRangeU(0, view.width()); in TestCreate() 372 uint32_t boundsH = d->fRandom->nextRangeU(0, view.height()); in TestCreate()
|
/third_party/skia/samplecode/ |
D | SampleManyRects.cpp | 33 SkRect rect = SkRect::MakeWH(SkIntToScalar(fRandom.nextRangeU(10, 100)), in onDrawContent() 34 SkIntToScalar(fRandom.nextRangeU(10, 100))); in onDrawContent() 35 int x = fRandom.nextRangeU(0, dsize.fWidth); in onDrawContent() 36 int y = fRandom.nextRangeU(0, dsize.fHeight); in onDrawContent()
|
D | SampleRectanizer.cpp | 39 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize), in RectanizerView() 40 random.nextRangeU(kMinRectSize, kMaxRectSize)); in RectanizerView() 42 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize)), in RectanizerView() 43 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize))); in RectanizerView()
|
D | SampleChineseFling.cpp | 70 fIndex += fRand.nextRangeU(5, 20); in onDrawContent() 100 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomWord() 218 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomLine()
|
D | SampleMegaStroke.cpp | 23 fMegaPath.lineTo(SkIntToScalar(index), SkIntToScalar(rand.nextRangeU(500, 600))); in MegaStrokeView()
|
/third_party/skia/bench/ |
D | RectanizerBench.cpp | 93 size = SkISize::Make(rand.nextRangeU(1, kWidth / 2), in onDraw() 94 rand.nextRangeU(1, kHeight / 2)); in onDraw() 96 size = SkISize::Make(GrNextPow2(rand.nextRangeU(1, kWidth / 2)), in onDraw() 97 GrNextPow2(rand.nextRangeU(1, kHeight / 2))); in onDraw()
|
D | ShapesBench.cpp | 169 shapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType); in onDelayedSetup() 173 innerShapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType); in onDelayedSetup()
|
/third_party/skia/tests/ |
D | PathOpsTightBoundsTest.cpp | 17 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsLines() 19 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsLines() 62 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsQuads() 64 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsQuads()
|
D | GpuRectanizerTest.cpp | 64 rects.push_back(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST() 65 rand.nextRangeU(1, kHeight / 2))); in DEF_GPUTEST()
|
D | RandomTest.cpp | 166 (void) rand.nextRangeU(0, 0xffffffff); in test_range() 172 unsigned int u = rand.nextRangeU(17, 17+255); in test_range()
|
D | OverAlignedTest.cpp | 18 void* p = sk_malloc_throw(rand.nextRangeU(0,100)); in DEF_TEST()
|
D | GrMemoryPoolTest.cpp | 153 switch (r->nextRangeU(0, 4)) { in Create() 209 int d = r.nextRangeU(0, instanceRecs.count() - 1); in DEF_TEST()
|
D | SortTest.cpp | 47 int count = rand.nextRangeU(1, SK_ARRAY_COUNT(randomArray)); in DEF_TEST()
|
D | ParsePathTest.cpp | 83 uint32_t count = rand.nextRangeU(0, 10); in DEF_TEST()
|
/third_party/skia/gm/ |
D | arcto.cpp | 158 uint32_t y = rand.nextRangeU(30, 70); in DEF_SIMPLE_GM() 159 uint32_t x = rand.nextRangeU(30, 70); in DEF_SIMPLE_GM() 161 for (uint32_t i = rand.nextRangeU(0, 10); i--; ) { in DEF_SIMPLE_GM()
|
D | variedtext.cpp | 74 int length = random.nextRangeU(kMinLength, kMaxLength); in onOnceBeforeDraw() 77 text[j] = (char)random.nextRangeU('!', 'z'); in onOnceBeforeDraw()
|
/third_party/skia/include/utils/ |
D | SkRandom.h | 76 uint32_t nextRangeU(uint32_t min, uint32_t max) { in nextRangeU() function 91 return this->nextRangeU(0, count - 1); in nextULessThan()
|
/third_party/skia/src/gpu/ops/ |
D | LatticeOp.cpp | 464 dims.fWidth = random->nextRangeU(1, 1000); in GR_DRAW_OP_TEST_DEFINE() 465 dims.fHeight = random->nextRangeU(1, 1000); in GR_DRAW_OP_TEST_DEFINE() 484 subset.fRight = random->nextRangeU(subset.fLeft + 1, dims.fWidth); in GR_DRAW_OP_TEST_DEFINE() 486 subset.fBottom = random->nextRangeU(subset.fTop + 1, dims.fHeight); in GR_DRAW_OP_TEST_DEFINE() 493 lattice.fXCount = random->nextRangeU(1, subset.width()); in GR_DRAW_OP_TEST_DEFINE() 494 lattice.fYCount = random->nextRangeU(1, subset.height()); in GR_DRAW_OP_TEST_DEFINE()
|
D | RegionOp.cpp | 228 int w = random->nextRangeU(10, 1000); in GR_DRAW_OP_TEST_DEFINE() 229 int h = random->nextRangeU(10, 1000); in GR_DRAW_OP_TEST_DEFINE()
|
/third_party/skia/src/gpu/ |
D | GrTestUtils.cpp | 273 int cnt = random->nextRangeU(1, 50) * 2; in TestStyle() 381 color = GrColorPackRGBA(random->nextRangeU(0, alpha), in RandomColor() 382 random->nextRangeU(0, alpha), in RandomColor() 383 random->nextRangeU(0, alpha), in RandomColor()
|
/third_party/skia/src/effects/imagefilters/ |
D | SkDisplacementMapImageFilter.cpp | 504 static_cast<SkColorChannel>(d->fRandom->nextRangeU(1, kMaxComponent)); in TestCreate() 506 static_cast<SkColorChannel>(d->fRandom->nextRangeU(1, kMaxComponent)); in TestCreate() 511 colorDimensions.fWidth = d->fRandom->nextRangeU(0, colorView.width()); in TestCreate() 512 colorDimensions.fHeight = d->fRandom->nextRangeU(0, colorView.height()); in TestCreate()
|