Home
last modified time | relevance | path

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

12

/external/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.cpp195 case kTiled: x = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
196 y = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
/external/skia/include/gpu/
DGrTestUtils.h53 ColorMode colorMode = ColorMode(random->nextULessThan(kLast_ColorMode + 1)); in GrRandomColor()
63 color = GrColorPackRGBA(random->nextULessThan(256), in GrRandomColor()
64 random->nextULessThan(256), in GrRandomColor()
65 random->nextULessThan(256), in GrRandomColor()
69 uint8_t alpha = random->nextULessThan(256); in GrRandomColor()
89 CoverageMode colorMode = CoverageMode(random->nextULessThan(kLast_CoverageMode + 1)); in GrRandomCoverage()
99 coverage = random->nextULessThan(256); in GrRandomCoverage()
/external/skia/src/gpu/
DGrTestUtils.cpp38 return gMatrices[random->nextULessThan(count)]; in test_matrix()
40 return gMatrices[random->nextULessThan(count - kPerspectiveCount)]; in test_matrix()
70 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles()
96 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect()
113 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect()
125 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare()
143 return gRRect[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRRect)))]; in TestRRectSimple()
184 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPath()
218 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPathConvex()
226 SkPaint::Cap cap = SkPaint::Cap(random->nextULessThan(SkPaint::kCapCount)); in randomize_stroke_rec()
[all …]
DGrBatchTest.cpp53 uint32_t index = random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gTestBatches))); in GrRandomDrawBatch()
/external/skia/src/gpu/effects/
DGrConstColorProcessor.cpp117 int colorPicker = d->fRandom->nextULessThan(3); in TestCreate()
120 uint32_t a = d->fRandom->nextULessThan(0x100); in TestCreate()
121 uint32_t r = d->fRandom->nextULessThan(a+1); in TestCreate()
122 uint32_t g = d->fRandom->nextULessThan(a+1); in TestCreate()
123 uint32_t b = d->fRandom->nextULessThan(a+1); in TestCreate()
131 color = d->fRandom->nextULessThan(0x100); in TestCreate()
135 InputMode mode = static_cast<InputMode>(d->fRandom->nextULessThan(kInputModeCnt)); in TestCreate()
DGrSimpleTextureEffect.cpp58 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
59 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
68 GrCoordSet coordSet = kCoordSets[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kCoordSets))]; in TestCreate()
DGrBitmapTextGeoProc.cpp176 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
177 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
183 switch (d->fRandom->nextULessThan(3)) { in TestCreate()
DGrDistanceFieldGeoProc.cpp251 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
252 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
461 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
462 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
733 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
734 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
DGrConvexPolyEffect.cpp73 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
339 int count = d->fRandom->nextULessThan(kMaxEdges) + 1; in TestCreate()
348 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
DGrOvalEffect.cpp87 et = (GrPrimitiveEdgeType)d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate()
255 et = (GrPrimitiveEdgeType)d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate()
DGrBezierEffect.cpp280 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
495 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
724 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
/external/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()
DLListTest.cpp186 int insertionMethod = random.nextULessThan(numValidMethods); in test_tllist()
196 int n = random.nextULessThan(list1.count()); in test_tllist()
240 int n = random.nextULessThan(list1.count()); in test_tllist()
DGLProgramsTest.cpp246 int numProcs = d->fRandom->nextULessThan(maxStages + 1); in set_random_color_coverage_stages()
247 int numColorProcs = d->fRandom->nextULessThan(numProcs + 1); in set_random_color_coverage_stages()
DPDFDeflateWStreamTest.cpp107 uint32_t size = random.nextULessThan(10000); in DEF_TEST()
DGrTRecorderTest.cpp49 rand.nextULessThan(10))); in test_empty_back_and_pop()
/external/skia/gm/
Dimagemagnifier.cpp27 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG()
28 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
Dimageblur.cpp27 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw()
28 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
Ddiscard.cpp62 switch (rand.nextULessThan(3)) { in onDraw()
Dvariedtext.cpp86 random.nextULessThan(SK_ARRAY_COUNT(fTypefacesToUnref))]; in onOnceBeforeDraw()
/external/skia/src/effects/
DSkMagnifierImageFilter.cpp195 uint32_t width = d->fRandom->nextULessThan(kMaxWidth); in TestCreate()
196 uint32_t height = d->fRandom->nextULessThan(kMaxHeight); in TestCreate()
197 uint32_t x = d->fRandom->nextULessThan(kMaxWidth - width); in TestCreate()
198 uint32_t y = d->fRandom->nextULessThan(kMaxHeight - height); in TestCreate()
199 uint32_t inset = d->fRandom->nextULessThan(kMaxInset); in TestCreate()
DSkAlphaThresholdFilter.cpp229 uint32_t width = d->fRandom->nextULessThan(kMaxWidth); in TestCreate()
230 uint32_t height = d->fRandom->nextULessThan(kMaxHeight); in TestCreate()
231 uint32_t x = d->fRandom->nextULessThan(kMaxWidth - width); in TestCreate()
232 uint32_t y = d->fRandom->nextULessThan(kMaxHeight - height); in TestCreate()
/external/skia/src/gpu/batches/
DGrDrawVerticesBatch.cpp270 indices->push_back(random->nextULessThan((uint16_t)maxVertex)); in randomize_params()
276 GrPrimitiveType type = GrPrimitiveType(random->nextULessThan(kLast_GrPrimitiveType + 1)); in DRAW_BATCH_TEST_DEFINE()
/external/skia/include/utils/
DSkRandom.h95 uint32_t nextULessThan(uint32_t count) { in nextULessThan() function

12