Home
last modified time | relevance | path

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

1234

/external/skqp/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/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/skqp/samplecode/
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 …]
DSampleManyRects.cpp39 SkRect rect = SkRect::MakeWH(SkIntToScalar(fRandom.nextRangeU(10, 100)), in onDrawContent()
40 SkIntToScalar(fRandom.nextRangeU(10, 100))); in onDrawContent()
41 int x = fRandom.nextRangeU(0, dsize.fWidth); in onDrawContent()
42 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.cpp76 fIndex += fRand.nextRangeU(5, 20); in onDrawContent()
107 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomWord()
234 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomLine()
/external/skia/samplecode/
DSampleManyRects.cpp39 SkRect rect = SkRect::MakeWH(SkIntToScalar(fRandom.nextRangeU(10, 100)), in onDrawContent()
40 SkIntToScalar(fRandom.nextRangeU(10, 100))); in onDrawContent()
41 int x = fRandom.nextRangeU(0, dsize.fWidth); in onDrawContent()
42 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.cpp76 fIndex += fRand.nextRangeU(5, 20); in onDrawContent()
107 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomWord()
234 glyphs[i] = fRand.nextRangeU(0x4F00, 0x9FA0); in createRandomLine()
/external/skia/bench/
DRectanizerBench.cpp91 size = SkISize::Make(rand.nextRangeU(1, kWidth / 2), in onDraw()
92 rand.nextRangeU(1, kHeight / 2)); in onDraw()
94 size = SkISize::Make(GrNextPow2(rand.nextRangeU(1, kWidth / 2)), in onDraw()
95 GrNextPow2(rand.nextRangeU(1, kHeight / 2))); in onDraw()
/external/skqp/bench/
DRectanizerBench.cpp91 size = SkISize::Make(rand.nextRangeU(1, kWidth / 2), in onDraw()
92 rand.nextRangeU(1, kHeight / 2)); in onDraw()
94 size = SkISize::Make(GrNextPow2(rand.nextRangeU(1, kWidth / 2)), in onDraw()
95 GrNextPow2(rand.nextRangeU(1, kHeight / 2))); in onDraw()
/external/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.cpp324 int width = d->fRandom->nextRangeU(1, MAX_KERNEL_SIZE); in TestCreate()
325 int height = d->fRandom->nextRangeU(1, MAX_KERNEL_SIZE / width); in TestCreate()
333 SkIPoint kernelOffset = SkIPoint::Make(d->fRandom->nextRangeU(0, kernelSize.width()), in TestCreate()
334 d->fRandom->nextRangeU(0, kernelSize.height())); in TestCreate()
335 SkIRect bounds = SkIRect::MakeXYWH(d->fRandom->nextRangeU(0, proxy->width()), in TestCreate()
336 d->fRandom->nextRangeU(0, proxy->height()), in TestCreate()
337 d->fRandom->nextRangeU(0, proxy->width()), in TestCreate()
338 d->fRandom->nextRangeU(0, proxy->height())); in TestCreate()
340 static_cast<GrTextureDomain::Mode>(d->fRandom->nextRangeU(0, 2)); in TestCreate()
DGrGaussianConvolutionFragmentProcessor.cpp282 int modeIdx = d->fRandom->nextRangeU(0, GrTextureDomain::kModeCount-1); in TestCreate()
287 bounds[0] = d->fRandom->nextRangeU(0, proxy->width()-2); in TestCreate()
288 bounds[1] = d->fRandom->nextRangeU(bounds[0]+1, proxy->width()-1); in TestCreate()
291 bounds[0] = d->fRandom->nextRangeU(0, proxy->height()-2); in TestCreate()
292 bounds[1] = d->fRandom->nextRangeU(bounds[0]+1, proxy->height()-1); in TestCreate()
295 int radius = d->fRandom->nextRangeU(1, kMaxKernelRadius); in TestCreate()
/external/skqp/src/gpu/effects/
DGrMatrixConvolutionEffect.cpp324 int width = d->fRandom->nextRangeU(1, MAX_KERNEL_SIZE); in TestCreate()
325 int height = d->fRandom->nextRangeU(1, MAX_KERNEL_SIZE / width); in TestCreate()
333 SkIPoint kernelOffset = SkIPoint::Make(d->fRandom->nextRangeU(0, kernelSize.width()), in TestCreate()
334 d->fRandom->nextRangeU(0, kernelSize.height())); in TestCreate()
335 SkIRect bounds = SkIRect::MakeXYWH(d->fRandom->nextRangeU(0, proxy->width()), in TestCreate()
336 d->fRandom->nextRangeU(0, proxy->height()), in TestCreate()
337 d->fRandom->nextRangeU(0, proxy->width()), in TestCreate()
338 d->fRandom->nextRangeU(0, proxy->height())); in TestCreate()
340 static_cast<GrTextureDomain::Mode>(d->fRandom->nextRangeU(0, 2)); in TestCreate()
DGrGaussianConvolutionFragmentProcessor.cpp282 int modeIdx = d->fRandom->nextRangeU(0, GrTextureDomain::kModeCount-1); in TestCreate()
287 bounds[0] = d->fRandom->nextRangeU(0, proxy->width()-2); in TestCreate()
288 bounds[1] = d->fRandom->nextRangeU(bounds[0]+1, proxy->width()-1); in TestCreate()
291 bounds[0] = d->fRandom->nextRangeU(0, proxy->height()-2); in TestCreate()
292 bounds[1] = d->fRandom->nextRangeU(bounds[0]+1, proxy->height()-1); in TestCreate()
295 int radius = d->fRandom->nextRangeU(1, kMaxKernelRadius); in TestCreate()
/external/skia/src/gpu/
DGrTestUtils.h122 color = GrColorPackRGBA(random->nextRangeU(0, alpha), in GrRandomColor()
123 random->nextRangeU(0, alpha), in GrRandomColor()
124 random->nextRangeU(0, alpha), in GrRandomColor()
/external/skqp/src/gpu/
DGrTestUtils.h122 color = GrColorPackRGBA(random->nextRangeU(0, alpha), in GrRandomColor()
123 random->nextRangeU(0, alpha), in GrRandomColor()
124 random->nextRangeU(0, alpha), in GrRandomColor()
/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.cpp64 rects.push_back(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
65 rand.nextRangeU(1, kHeight / 2))); in DEF_GPUTEST()
/external/skqp/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.cpp64 rects.push_back(SkISize::Make(rand.nextRangeU(1, kWidth / 2), in DEF_GPUTEST()
65 rand.nextRangeU(1, kHeight / 2))); in DEF_GPUTEST()
/external/skqp/src/gpu/ops/
DGrLatticeOp.cpp396 desc.fWidth = random->nextRangeU(1, 1000); in GR_DRAW_OP_TEST_DEFINE()
397 desc.fHeight = random->nextRangeU(1, 1000); in GR_DRAW_OP_TEST_DEFINE()
408 subset.fRight = random->nextRangeU(subset.fLeft + 1, desc.fWidth); in GR_DRAW_OP_TEST_DEFINE()
410 subset.fBottom = random->nextRangeU(subset.fTop + 1, desc.fHeight); in GR_DRAW_OP_TEST_DEFINE()
417 lattice.fXCount = random->nextRangeU(1, subset.width()); in GR_DRAW_OP_TEST_DEFINE()
418 lattice.fYCount = random->nextRangeU(1, subset.height()); in GR_DRAW_OP_TEST_DEFINE()
/external/skia/src/gpu/ops/
DGrLatticeOp.cpp402 desc.fWidth = random->nextRangeU(1, 1000); in GR_DRAW_OP_TEST_DEFINE()
403 desc.fHeight = random->nextRangeU(1, 1000); in GR_DRAW_OP_TEST_DEFINE()
414 subset.fRight = random->nextRangeU(subset.fLeft + 1, desc.fWidth); in GR_DRAW_OP_TEST_DEFINE()
416 subset.fBottom = random->nextRangeU(subset.fTop + 1, desc.fHeight); in GR_DRAW_OP_TEST_DEFINE()
423 lattice.fXCount = random->nextRangeU(1, subset.width()); in GR_DRAW_OP_TEST_DEFINE()
424 lattice.fYCount = random->nextRangeU(1, subset.height()); in GR_DRAW_OP_TEST_DEFINE()
/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()
/external/skqp/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()

1234