Home
last modified time | relevance | path

Searched refs:nextULessThan (Results 1 – 25 of 38) sorted by relevance

12

/third_party/skia/src/gpu/
DGrTestUtils.cpp44 return gMatrices[random->nextULessThan(count)]; in test_matrix()
46 return gMatrices[count - 1 - random->nextULessThan(kPerspectiveCount)]; in test_matrix()
49 return gMatrices[random->nextULessThan(count - kPerspectiveCount)]; in test_matrix()
79 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles()
105 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect()
117 wrapModes[0] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
118 wrapModes[1] = kWrapModes[random->nextULessThan(SK_ARRAY_COUNT(kWrapModes))]; in TestWrapModes()
132 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect()
144 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare()
162 return gRRect[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRRect)))]; in TestRRectSimple()
[all …]
DGrProcessorUnitTest.cpp55 return fViews[fRandom->nextULessThan(fViews.count())]; in randomView()
66 int idx = fRandom->nextULessThan(numAlphaOnly); in randomAlphaOnlyView()
88 uint32_t idx = data->fRandom->nextULessThan(GetFactories()->count()); in Make()
DGrDrawOpTest.cpp57 return kStencilSettings[random->nextULessThan(SK_ARRAY_COUNT(kStencilSettings))]; in GrGetRandomStencil()
/third_party/skia/bench/
DHairlinePathBench.cpp98 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
99 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
100 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
130 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
131 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
132 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
163 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
164 int base2 = 2 * rand.nextULessThan(hSize); in makePath()
165 int base3 = 2 * rand.nextULessThan(hSize); in makePath()
198 int base1 = 2 * rand.nextULessThan(hSize); in makePath()
[all …]
DPicturePlaybackBench.cpp75 case kTiled: x = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
76 y = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
DTessellateBench.cpp287 if (rand.nextULessThan(10) == 0) { in make_motionmark_paths()
299 if (rand.nextULessThan(10) == 0) { in make_motionmark_paths()
DImageCacheBudgetBench.cpp105 int other = random.nextULessThan(kImagesToDraw - i) + i; in onPerCanvasPreDraw()
/third_party/skia/tests/
DTDPQueueTest.cpp87 int count = random.nextULessThan(100); in random_test()
121 unsigned action = random.nextULessThan(3); in random_test()
133 item = random.nextULessThan(count); in random_test()
142 item = random.nextULessThan(count); in random_test()
160 int count = random.nextULessThan(100); in sort_test()
DOpChainTest.cpp74 auto& group = groups[random->nextULessThan(numGroups)]; in init_combinable()
212 unsigned j = i + random.nextULessThan(kNumOps - i);
DPDFDeflateWStreamTest.cpp111 uint32_t size = random.nextULessThan(10000); in DEF_TEST()
DProcessorTest.cpp263 random.nextULessThan(256), random.nextULessThan(256), 0.0f); in init()
288 alphaData[kTestTextureSize * y + x] = random.nextULessThan(256); in init()
/third_party/skia/src/gpu/ops/
DRegionOp.cpp223 int n = random->nextULessThan(200); in GR_DRAW_OP_TEST_DEFINE()
226 center.fX = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE()
227 center.fY = random->nextULessThan(1000); in GR_DRAW_OP_TEST_DEFINE()
237 op = (SkRegion::Op)random->nextULessThan(SkRegion::kLastOp); in GR_DRAW_OP_TEST_DEFINE()
DLatticeOp.cpp439 int entry = random->nextULessThan(count + 1); in init_random_divs()
483 subset.fLeft = random->nextULessThan(dims.fWidth); in GR_DRAW_OP_TEST_DEFINE()
485 subset.fTop = random->nextULessThan(dims.fHeight); in GR_DRAW_OP_TEST_DEFINE()
DDashOp.cpp877 AAMode aaMode = static_cast<AAMode>(d->fRandom->nextULessThan(kAAModeCnt)); in TestCreate()
1091 AAMode aaMode = static_cast<AAMode>(d->fRandom->nextULessThan(kAAModeCnt)); in TestCreate()
1236 aaMode = static_cast<AAMode>(random->nextULessThan(kAAModeCnt)); in GR_DRAW_OP_TEST_DEFINE()
1256 SkPaint::Cap cap = SkPaint::Cap(random->nextULessThan(SkPaint::kCapCount)); in GR_DRAW_OP_TEST_DEFINE()
1269 Intervals(random->nextULessThan(kCloseOpen_Intervals + 1)); in GR_DRAW_OP_TEST_DEFINE()
/third_party/skia/gm/
Dimageblur.cpp33 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw()
34 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
Druntimeimagefilter.cpp53 int x = rand.nextULessThan(500); in __anonac8faa070102()
54 int y = rand.nextULessThan(500); in __anonac8faa070102()
Dimagemagnifier.cpp44 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG()
45 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
Ddiscard.cpp69 switch (rand.nextULessThan(3)) { in onDraw()
Dvariedtext.cpp90 fTypefaceIndices[i] = random.nextULessThan(SK_ARRAY_COUNT(fTypefaces)); in onOnceBeforeDraw()
/third_party/skia/src/gpu/effects/
DGrBicubicEffect.cpp242 switch (d->fRandom->nextULessThan(3)) { in TestCreate()
256 switch (d->fRandom->nextULessThan(3)) { in TestCreate()
288 at = static_cast<SkAlphaType>(d->fRandom->nextULessThan(kLastEnum_SkAlphaType + 1)); in TestCreate()
DGrConvexPolyEffect.cpp191 int count = d->fRandom->nextULessThan(kMaxEdges) + 1; in TestCreate()
201 static_cast<GrClipEdgeType>(d->fRandom->nextULessThan(kGrClipEdgeTypeCnt)); in TestCreate()
DGrCoverageSetOpXP.cpp184 SkRegion::Op regionOp = SkRegion::Op(d->fRandom->nextULessThan(SkRegion::kLastOp + 1)); in TestGet()
/third_party/skia/samplecode/
DSampleFlutterAnimate.cpp68 char c = fRand.nextULessThan(26) + 65; in initChars()
/third_party/skia/tools/gpu/
DGrTest.cpp100 uint32_t index = random->nextULessThan(static_cast<uint32_t>(kTotal)); in GrDrawRandomOp()
/third_party/skia/include/utils/
DSkRandom.h89 uint32_t nextULessThan(uint32_t count) { in nextULessThan() function

12