Home
last modified time | relevance | path

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

12

/external/skia/samplecode/
DSampleManyRects.cpp42 SkRect rect = SkRect::MakeWH(SkIntToScalar(fRandom.nextRangeU(10, 100)), in onDrawContent()
43 SkIntToScalar(fRandom.nextRangeU(10, 100))); in onDrawContent()
44 int x = fRandom.nextRangeU(0, dsize.fWidth); in onDrawContent()
45 int y = fRandom.nextRangeU(0, dsize.fHeight); in onDrawContent()
DSamplePathFuzz.cpp146 fPathDepthLimit = fRand.nextRangeU(1, 2); in randomize()
147 fPathContourCount = fRand.nextRangeU(1, 4); in randomize()
148 fPathSegmentLimit = fRand.nextRangeU(1, 8); in randomize()
153 fPathDepthLimit = fRand.nextRangeU(1, 3); in randomize()
154 fPathContourCount = fRand.nextRangeU(1, 6); in randomize()
155 fPathSegmentLimit = fRand.nextRangeU(1, 16); in randomize()
187 return (SkPath::AddPathMode) fRand.nextRangeU(SkPath::kAppend_AddPathMode, in makeAddPathMode()
192 return (RandomAddPath) fRand.nextRangeU(0, kRandomAddPath_Last); in makeAddPathType()
206 return (SkPath::Direction) fRand.nextRangeU(SkPath::kCW_Direction, SkPath::kCCW_Direction); in makeDirection()
212 RandomSetMatrix setMatrix = (RandomSetMatrix) fRand.nextRangeU(0, kRandomSetMatrix_Last); in makeMatrix()
[all …]
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()
/external/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.cpp246 int width = random->nextRangeU(1, MAX_KERNEL_SIZE); in TestCreate()
247 int height = random->nextRangeU(1, MAX_KERNEL_SIZE / width); in TestCreate()
255 SkIPoint kernelOffset = SkIPoint::Make(random->nextRangeU(0, kernelSize.width()), in TestCreate()
256 random->nextRangeU(0, kernelSize.height())); in TestCreate()
257 SkIRect bounds = SkIRect::MakeXYWH(random->nextRangeU(0, textures[texIdx]->width()), in TestCreate()
258 random->nextRangeU(0, textures[texIdx]->height()), in TestCreate()
259 random->nextRangeU(0, textures[texIdx]->width()), in TestCreate()
260 random->nextRangeU(0, textures[texIdx]->height())); in TestCreate()
261 GrTextureDomain::Mode tileMode = static_cast<GrTextureDomain::Mode>(random->nextRangeU(0, 2)); in TestCreate()
DGrConvolutionEffect.cpp228 int radius = random->nextRangeU(1, kMaxKernelRadius); in TestCreate()
DGrCustomXfermode.cpp500 int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLastSeparableMode); in TestCreate()
823 int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLastSeparableMode); 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.cpp114 uint32_t idx = r.nextRangeU(0, kMaxObjects-1); in onDraw()
158 uint32_t count = r.nextRangeU(0, M-1); in onDraw()
DPathBench.cpp234 fVerbCnts[i] = fRandom.nextRangeU(minVerbs, maxVerbs + 1); in createData()
/external/skia/include/gpu/
DGrTestUtils.h68 color = GrColorPackRGBA(random->nextRangeU(0, alpha), in GrRandomColor()
69 random->nextRangeU(0, alpha), in GrRandomColor()
70 random->nextRangeU(0, alpha), in GrRandomColor()
DGrProcessorUnitTest.h53 uint32_t idx = random->nextRangeU(0, GetFactories()->count() - 1); in CreateStage()
/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()
DKtxTest.cpp43 uint8_t a = rand.nextRangeU(0, 255); in DEF_TEST()
44 uint8_t r = rand.nextRangeU(0, 255); in DEF_TEST()
45 uint8_t g = rand.nextRangeU(0, 255); in DEF_TEST()
46 uint8_t b = rand.nextRangeU(0, 255); in DEF_TEST()
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()
DGrMemoryPoolTest.cpp163 switch (r->nextRangeU(0, 4)) { in Create()
217 int d = r.nextRangeU(0, instanceRecs.count() - 1); in DEF_TEST()
DSortTest.cpp45 int count = rand.nextRangeU(1, SK_ARRAY_COUNT(randomArray)); in DEF_TEST()
DDeflateWStream.cpp27 SkTMin(size - j, random.nextRangeU(1, 400)); in DEF_TEST()
/external/skia/include/utils/
DSkRandom.h82 uint32_t nextRangeU(uint32_t min, uint32_t max) { in nextRangeU() function
97 return this->nextRangeU(0, count - 1); in nextULessThan()
/external/skia/src/effects/
DSkColorFilters.cpp353 mode = static_cast<SkXfermode::Mode>(rand->nextRangeU(0, SkXfermode::kLastCoeffMode)); in TestCreate()
358 GrColor color = GrColorPackRGBA(rand->nextRangeU(0, alpha), in TestCreate()
359 rand->nextRangeU(0, alpha), in TestCreate()
360 rand->nextRangeU(0, alpha), in TestCreate()
DSkDisplacementMapEffect.cpp529 random->nextRangeU(1, kMaxComponent)); in TestCreate()
532 random->nextRangeU(1, kMaxComponent)); in TestCreate()
536 colorDimensions.fWidth = random->nextRangeU(0, textures[texIdxColor]->width()); in TestCreate()
537 colorDimensions.fHeight = random->nextRangeU(0, textures[texIdxColor]->height()); in TestCreate()
DSkPerlinNoiseShader.cpp607 int numOctaves = random->nextRangeU(2, 10); in TestCreate()
610 SkISize tileSize = SkISize::Make(random->nextRangeU(4, 4096), random->nextRangeU(4, 4096)); in TestCreate()
DSkMorphologyImageFilter.cpp553 int radius = random->nextRangeU(1, kMaxRadius); in TestCreate()
/external/skia/gm/
Dvariedtext.cpp69 int length = random.nextRangeU(kMinLength, kMaxLength); in onOnceBeforeDraw()
72 text[j] = (char)random.nextRangeU('!', 'z'); in onOnceBeforeDraw()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp1166 int outColors = random->nextRangeU(1, kMaxRandomGradientColors); in RandomGradientParams()

12