/external/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 | 195 case kTiled: x = SkScalar(256 * rand.nextULessThan(4)); in onDraw() 196 y = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
|
/external/skia/include/gpu/ |
D | GrTestUtils.h | 53 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/ |
D | GrTestUtils.cpp | 38 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 …]
|
D | GrBatchTest.cpp | 53 uint32_t index = random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gTestBatches))); in GrRandomDrawBatch()
|
/external/skia/src/gpu/effects/ |
D | GrConstColorProcessor.cpp | 117 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()
|
D | GrSimpleTextureEffect.cpp | 58 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()
|
D | GrBitmapTextGeoProc.cpp | 176 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()
|
D | GrDistanceFieldGeoProc.cpp | 251 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()
|
D | GrConvexPolyEffect.cpp | 73 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate() 339 int count = d->fRandom->nextULessThan(kMaxEdges) + 1; in TestCreate() 348 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
|
D | GrOvalEffect.cpp | 87 et = (GrPrimitiveEdgeType)d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate() 255 et = (GrPrimitiveEdgeType)d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate()
|
D | GrBezierEffect.cpp | 280 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate() 495 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate() 724 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
|
/external/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()
|
D | LListTest.cpp | 186 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()
|
D | GLProgramsTest.cpp | 246 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()
|
D | PDFDeflateWStreamTest.cpp | 107 uint32_t size = random.nextULessThan(10000); in DEF_TEST()
|
D | GrTRecorderTest.cpp | 49 rand.nextULessThan(10))); in test_empty_back_and_pop()
|
/external/skia/gm/ |
D | imagemagnifier.cpp | 27 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG() 28 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
|
D | imageblur.cpp | 27 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw() 28 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
|
D | discard.cpp | 62 switch (rand.nextULessThan(3)) { in onDraw()
|
D | variedtext.cpp | 86 random.nextULessThan(SK_ARRAY_COUNT(fTypefacesToUnref))]; in onOnceBeforeDraw()
|
/external/skia/src/effects/ |
D | SkMagnifierImageFilter.cpp | 195 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()
|
D | SkAlphaThresholdFilter.cpp | 229 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/ |
D | GrDrawVerticesBatch.cpp | 270 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/ |
D | SkRandom.h | 95 uint32_t nextULessThan(uint32_t count) { in nextULessThan() function
|