/third_party/skia/src/gpu/ |
D | GrTestUtils.cpp | 44 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 …]
|
D | GrProcessorUnitTest.cpp | 55 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()
|
D | GrDrawOpTest.cpp | 57 return kStencilSettings[random->nextULessThan(SK_ARRAY_COUNT(kStencilSettings))]; in GrGetRandomStencil()
|
/third_party/skia/bench/ |
D | HairlinePathBench.cpp | 98 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 …]
|
D | PicturePlaybackBench.cpp | 75 case kTiled: x = SkScalar(256 * rand.nextULessThan(4)); in onDraw() 76 y = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
|
D | TessellateBench.cpp | 287 if (rand.nextULessThan(10) == 0) { in make_motionmark_paths() 299 if (rand.nextULessThan(10) == 0) { in make_motionmark_paths()
|
D | ImageCacheBudgetBench.cpp | 105 int other = random.nextULessThan(kImagesToDraw - i) + i; in onPerCanvasPreDraw()
|
/third_party/skia/tests/ |
D | TDPQueueTest.cpp | 87 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()
|
D | OpChainTest.cpp | 74 auto& group = groups[random->nextULessThan(numGroups)]; in init_combinable() 212 unsigned j = i + random.nextULessThan(kNumOps - i);
|
D | PDFDeflateWStreamTest.cpp | 111 uint32_t size = random.nextULessThan(10000); in DEF_TEST()
|
D | ProcessorTest.cpp | 263 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/ |
D | RegionOp.cpp | 223 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()
|
D | LatticeOp.cpp | 439 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()
|
D | DashOp.cpp | 877 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/ |
D | imageblur.cpp | 33 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw() 34 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
|
D | runtimeimagefilter.cpp | 53 int x = rand.nextULessThan(500); in __anonac8faa070102() 54 int y = rand.nextULessThan(500); in __anonac8faa070102()
|
D | imagemagnifier.cpp | 44 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG() 45 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
|
D | discard.cpp | 69 switch (rand.nextULessThan(3)) { in onDraw()
|
D | variedtext.cpp | 90 fTypefaceIndices[i] = random.nextULessThan(SK_ARRAY_COUNT(fTypefaces)); in onOnceBeforeDraw()
|
/third_party/skia/src/gpu/effects/ |
D | GrBicubicEffect.cpp | 242 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()
|
D | GrConvexPolyEffect.cpp | 191 int count = d->fRandom->nextULessThan(kMaxEdges) + 1; in TestCreate() 201 static_cast<GrClipEdgeType>(d->fRandom->nextULessThan(kGrClipEdgeTypeCnt)); in TestCreate()
|
D | GrCoverageSetOpXP.cpp | 184 SkRegion::Op regionOp = SkRegion::Op(d->fRandom->nextULessThan(SkRegion::kLastOp + 1)); in TestGet()
|
/third_party/skia/samplecode/ |
D | SampleFlutterAnimate.cpp | 68 char c = fRand.nextULessThan(26) + 65; in initChars()
|
/third_party/skia/tools/gpu/ |
D | GrTest.cpp | 100 uint32_t index = random->nextULessThan(static_cast<uint32_t>(kTotal)); in GrDrawRandomOp()
|
/third_party/skia/include/utils/ |
D | SkRandom.h | 89 uint32_t nextULessThan(uint32_t count) { in nextULessThan() function
|