/external/skia/samplecode/ |
D | SampleManyRects.cpp | 42 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()
|
D | SamplePathFuzz.cpp | 146 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 …]
|
D | SampleRectanizer.cpp | 37 *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/ |
D | GrMatrixConvolutionEffect.cpp | 246 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()
|
D | GrConvolutionEffect.cpp | 228 int radius = random->nextRangeU(1, kMaxKernelRadius); in TestCreate()
|
D | GrCustomXfermode.cpp | 500 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/ |
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 | GrMemoryPoolBench.cpp | 114 uint32_t idx = r.nextRangeU(0, kMaxObjects-1); in onDraw() 158 uint32_t count = r.nextRangeU(0, M-1); in onDraw()
|
D | PathBench.cpp | 234 fVerbCnts[i] = fRandom.nextRangeU(minVerbs, maxVerbs + 1); in createData()
|
/external/skia/include/gpu/ |
D | GrTestUtils.h | 68 color = GrColorPackRGBA(random->nextRangeU(0, alpha), in GrRandomColor() 69 random->nextRangeU(0, alpha), in GrRandomColor() 70 random->nextRangeU(0, alpha), in GrRandomColor()
|
D | GrProcessorUnitTest.h | 53 uint32_t idx = random->nextRangeU(0, GetFactories()->count() - 1); in CreateStage()
|
/external/skia/tests/ |
D | PathOpsTightBoundsTest.cpp | 18 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()
|
D | KtxTest.cpp | 43 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()
|
D | GpuRectanizerTest.cpp | 66 rects.push(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST() 67 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 | GrMemoryPoolTest.cpp | 163 switch (r->nextRangeU(0, 4)) { in Create() 217 int d = r.nextRangeU(0, instanceRecs.count() - 1); in DEF_TEST()
|
D | SortTest.cpp | 45 int count = rand.nextRangeU(1, SK_ARRAY_COUNT(randomArray)); in DEF_TEST()
|
D | DeflateWStream.cpp | 27 SkTMin(size - j, random.nextRangeU(1, 400)); in DEF_TEST()
|
/external/skia/include/utils/ |
D | SkRandom.h | 82 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/ |
D | SkColorFilters.cpp | 353 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()
|
D | SkDisplacementMapEffect.cpp | 529 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()
|
D | SkPerlinNoiseShader.cpp | 607 int numOctaves = random->nextRangeU(2, 10); in TestCreate() 610 SkISize tileSize = SkISize::Make(random->nextRangeU(4, 4096), random->nextRangeU(4, 4096)); in TestCreate()
|
D | SkMorphologyImageFilter.cpp | 553 int radius = random->nextRangeU(1, kMaxRadius); in TestCreate()
|
/external/skia/gm/ |
D | variedtext.cpp | 69 int length = random.nextRangeU(kMinLength, kMaxLength); in onOnceBeforeDraw() 72 text[j] = (char)random.nextRangeU('!', 'z'); in onOnceBeforeDraw()
|
/external/skia/src/effects/gradients/ |
D | SkGradientShader.cpp | 1166 int outColors = random->nextRangeU(1, kMaxRandomGradientColors); in RandomGradientParams()
|