Home
last modified time | relevance | path

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

12

/external/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 index = 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()
/external/skia/samplecode/
DSamplePathFuzz.cpp147 fPathDepthLimit = fRand.nextRangeU(1, 2); in randomize()
148 fPathContourCount = fRand.nextRangeU(1, 4); in randomize()
149 fPathSegmentLimit = fRand.nextRangeU(1, 8); in randomize()
154 fPathDepthLimit = fRand.nextRangeU(1, 3); in randomize()
155 fPathContourCount = fRand.nextRangeU(1, 6); in randomize()
156 fPathSegmentLimit = fRand.nextRangeU(1, 16); in randomize()
188 return (SkPath::AddPathMode) fRand.nextRangeU(SkPath::kAppend_AddPathMode, in makeAddPathMode()
193 return (RandomAddPath) fRand.nextRangeU(0, kRandomAddPath_Last); in makeAddPathType()
207 return (SkPath::Direction) fRand.nextRangeU(SkPath::kCW_Direction, SkPath::kCCW_Direction); in makeDirection()
213 RandomSetMatrix setMatrix = (RandomSetMatrix) fRand.nextRangeU(0, kRandomSetMatrix_Last); in makeMatrix()
[all …]
DSampleManyRects.cpp40 SkRect rect = SkRect::MakeWH(SkIntToScalar(fRandom.nextRangeU(10, 100)), in onDrawContent()
41 SkIntToScalar(fRandom.nextRangeU(10, 100))); in onDrawContent()
42 int x = fRandom.nextRangeU(0, dsize.fWidth); in onDrawContent()
43 int y = fRandom.nextRangeU(0, dsize.fHeight); in onDrawContent()
DSampleRectanizer.cpp37 *fRects[0].append() = SkISize::Make(random.nextRangeU(kMinRectSize, kMaxRectSize), in RectanizerView()
38 random.nextRangeU(kMinRectSize, kMaxRectSize)); in RectanizerView()
40 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize)), in RectanizerView()
41 GrNextPow2(random.nextRangeU(kMinRectSize, kMaxRectSize))); in RectanizerView()
DSampleMegaStroke.cpp23 fMegaPath.lineTo(SkIntToScalar(index), SkIntToScalar(rand.nextRangeU(500, 600))); in MegaStrokeView()
/external/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.cpp259 int width = d->fRandom->nextRangeU(1, MAX_KERNEL_SIZE); in TestCreate()
260 int height = d->fRandom->nextRangeU(1, MAX_KERNEL_SIZE / width); in TestCreate()
268 SkIPoint kernelOffset = SkIPoint::Make(d->fRandom->nextRangeU(0, kernelSize.width()), in TestCreate()
269 d->fRandom->nextRangeU(0, kernelSize.height())); in TestCreate()
270 SkIRect bounds = SkIRect::MakeXYWH(d->fRandom->nextRangeU(0, proxy->width()), in TestCreate()
271 d->fRandom->nextRangeU(0, proxy->height()), in TestCreate()
272 d->fRandom->nextRangeU(0, proxy->width()), in TestCreate()
273 d->fRandom->nextRangeU(0, proxy->height())); in TestCreate()
275 static_cast<GrTextureDomain::Mode>(d->fRandom->nextRangeU(0, 2)); in TestCreate()
DGrGaussianConvolutionFragmentProcessor.cpp231 bounds[0] = d->fRandom->nextRangeU(0, proxy->width()-1); in TestCreate()
232 bounds[1] = d->fRandom->nextRangeU(bounds[0], proxy->width()-1); in TestCreate()
235 bounds[0] = d->fRandom->nextRangeU(0, proxy->height()-1); in TestCreate()
236 bounds[1] = d->fRandom->nextRangeU(bounds[0], proxy->height()-1); in TestCreate()
239 int radius = d->fRandom->nextRangeU(1, kMaxKernelRadius); in TestCreate()
DGrSRGBEffect.cpp109 Mode testMode = static_cast<Mode>(d->fRandom->nextRangeU(0, 1)); in TestCreate()
/external/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()
DGrMemoryPoolBench.cpp116 uint32_t idx = r.nextRangeU(0, kMaxObjects-1); in onDraw()
160 uint32_t count = r.nextRangeU(0, M-1); in onDraw()
DShapesBench.cpp168 shapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType); in onDelayedSetup()
172 innerShapeType = rand.nextRangeU(kRect_ShapesType, kRRect_ShapesType); in onDelayedSetup()
/external/skia/include/gpu/
DGrTestUtils.h114 color = GrColorPackRGBA(random->nextRangeU(0, alpha), in GrRandomColor()
115 random->nextRangeU(0, alpha), in GrRandomColor()
116 random->nextRangeU(0, alpha), in GrRandomColor()
DGrProcessorUnitTest.h90 uint32_t idx = data->fRandom->nextRangeU(0, GetFactories()->count() - 1); in Make()
125 uint32_t idx = data->fRandom->nextRangeU(0, GetFactories()->count() - 1); in Get()
/external/skia/tests/
DPathOpsTightBoundsTest.cpp18 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsLines()
20 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsLines()
63 int contourCount = ran.nextRangeU(1, 10); in testTightBoundsQuads()
65 int lineCount = ran.nextRangeU(1, 10); in testTightBoundsQuads()
DGpuRectanizerTest.cpp66 rects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
67 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()
DGpuSampleLocationsTest.cpp138 rand.nextRangeU(1 + numSamples / 2, numSamples), in test_sampleLocations()
142 rand.nextRangeU(1 + numSamples / 2, numSamples), in test_sampleLocations()
DOverAlignedTest.cpp18 void* p = sk_malloc_throw(rand.nextRangeU(0,100)); in DEF_TEST()
DSortTest.cpp47 int count = rand.nextRangeU(1, SK_ARRAY_COUNT(randomArray)); in DEF_TEST()
DGrMemoryPoolTest.cpp155 switch (r->nextRangeU(0, 4)) { in Create()
209 int d = r.nextRangeU(0, instanceRecs.count() - 1); in DEF_TEST()
DParsePathTest.cpp83 uint32_t count = rand.nextRangeU(0, 10); in DEF_TEST()
/external/skia/gm/
Darcto.cpp151 uint32_t y = rand.nextRangeU(30, 70); in DEF_SIMPLE_GM()
152 uint32_t x = rand.nextRangeU(30, 70); in DEF_SIMPLE_GM()
154 uint32_t count = rand.nextRangeU(0, 10); in DEF_SIMPLE_GM()
Dvariedtext.cpp65 int length = random.nextRangeU(kMinLength, kMaxLength); in onOnceBeforeDraw()
68 text[j] = (char)random.nextRangeU('!', 'z'); in onOnceBeforeDraw()
/external/skia/include/utils/
DSkRandom.h83 uint32_t nextRangeU(uint32_t min, uint32_t max) { in nextRangeU() function
98 return this->nextRangeU(0, count - 1); in nextULessThan()
/external/skia/src/effects/
DSkDisplacementMapEffect.cpp542 d->fRandom->nextRangeU(1, kMaxComponent)); in TestCreate()
545 d->fRandom->nextRangeU(1, kMaxComponent)); in TestCreate()
549 colorDimensions.fWidth = d->fRandom->nextRangeU(0, colorProxy->width()); in TestCreate()
550 colorDimensions.fHeight = d->fRandom->nextRangeU(0, colorProxy->height()); in TestCreate()

12