Home
last modified time | relevance | path

Searched refs:nextRangeU (Results 1 – 25 of 47) sorted by relevance

12

/third_party/skia/tools/
Drandom_parse_path.cpp37 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()
DDDLTileHelper.cpp250 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/
DBitmap_allocN32Pixels.cpp14 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/
DGrGaussianConvolutionFragmentProcessor.cpp252 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()
DGrMatrixConvolutionEffect.cpp355 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/
DSampleManyRects.cpp33 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()
DSampleRectanizer.cpp39 *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()
DSampleChineseFling.cpp70 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()
DSampleMegaStroke.cpp23 fMegaPath.lineTo(SkIntToScalar(index), SkIntToScalar(rand.nextRangeU(500, 600))); in MegaStrokeView()
/third_party/skia/bench/
DRectanizerBench.cpp93 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()
DShapesBench.cpp169 shapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType); in onDelayedSetup()
173 innerShapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType); in onDelayedSetup()
/third_party/skia/tests/
DPathOpsTightBoundsTest.cpp17 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()
DGpuRectanizerTest.cpp64 rects.push_back(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
65 rand.nextRangeU(1, kHeight / 2))); in DEF_GPUTEST()
DRandomTest.cpp166 (void) rand.nextRangeU(0, 0xffffffff); in test_range()
172 unsigned int u = rand.nextRangeU(17, 17+255); in test_range()
DOverAlignedTest.cpp18 void* p = sk_malloc_throw(rand.nextRangeU(0,100)); in DEF_TEST()
DGrMemoryPoolTest.cpp153 switch (r->nextRangeU(0, 4)) { in Create()
209 int d = r.nextRangeU(0, instanceRecs.count() - 1); in DEF_TEST()
DSortTest.cpp47 int count = rand.nextRangeU(1, SK_ARRAY_COUNT(randomArray)); in DEF_TEST()
DParsePathTest.cpp83 uint32_t count = rand.nextRangeU(0, 10); in DEF_TEST()
/third_party/skia/gm/
Darcto.cpp158 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()
Dvariedtext.cpp74 int length = random.nextRangeU(kMinLength, kMaxLength); in onOnceBeforeDraw()
77 text[j] = (char)random.nextRangeU('!', 'z'); in onOnceBeforeDraw()
/third_party/skia/include/utils/
DSkRandom.h76 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/
DLatticeOp.cpp464 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()
DRegionOp.cpp228 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/
DGrTestUtils.cpp273 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/
DSkDisplacementMapImageFilter.cpp504 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()

12