/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/src/gpu/ |
D | GrTestUtils.cpp | 42 return gMatrices[random->nextULessThan(count)]; in test_matrix() 44 return gMatrices[count - 1 - random->nextULessThan(kPerspectiveCount)]; in test_matrix() 47 return gMatrices[random->nextULessThan(count - kPerspectiveCount)]; in test_matrix() 77 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles() 103 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect() 121 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect() 133 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare() 151 return gRRect[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRRect)))]; in TestRRectSimple() 192 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPath() 226 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPathConvex() [all …]
|
D | GrDrawOpTest.cpp | 64 uint32_t index = random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gFactories))); in GrRandomDrawOp()
|
/external/skia/src/gpu/effects/ |
D | GrConstColorProcessor.cpp | 98 int colorPicker = d->fRandom->nextULessThan(3); in TestCreate() 101 uint32_t a = d->fRandom->nextULessThan(0x100); in TestCreate() 102 uint32_t r = d->fRandom->nextULessThan(a+1); in TestCreate() 103 uint32_t g = d->fRandom->nextULessThan(a+1); in TestCreate() 104 uint32_t b = d->fRandom->nextULessThan(a+1); in TestCreate() 112 uint32_t c = d->fRandom->nextULessThan(0x100); in TestCreate() 116 InputMode mode = static_cast<InputMode>(d->fRandom->nextULessThan(kInputModeCnt)); in TestCreate()
|
D | GrBitmapTextGeoProc.cpp | 170 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 171 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 177 switch (d->fRandom->nextULessThan(3)) { in TestCreate()
|
D | GrSimpleTextureEffect.cpp | 104 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 105 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
|
D | GrTextureDomain.cpp | 345 (GrTextureDomain::Mode) d->fRandom->nextULessThan(GrTextureDomain::kModeCount); in TestCreate() 455 subset.fLeft = d->fRandom->nextULessThan(proxy->width() - 1); in TestCreate() 457 subset.fTop = d->fRandom->nextULessThan(proxy->height() - 1); in TestCreate() 460 pt.fX = d->fRandom->nextULessThan(2048); in TestCreate() 461 pt.fY = d->fRandom->nextULessThan(2048); in TestCreate()
|
D | GrDistanceFieldGeoProc.cpp | 279 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 280 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 522 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 523 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 826 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 827 kTileModes[d->fRandom->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
|
D | GrConvexPolyEffect.cpp | 67 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate() 356 int count = d->fRandom->nextULessThan(kMaxEdges) + 1; in TestCreate() 365 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
|
D | GrOvalEffect.cpp | 84 et = (GrPrimitiveEdgeType)d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate() 250 et = (GrPrimitiveEdgeType)d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate()
|
D | GrBezierEffect.cpp | 266 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate() 468 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate() 691 d->fRandom->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
|
/external/skia/include/gpu/ |
D | GrTestUtils.h | 97 ColorMode colorMode = ColorMode(random->nextULessThan(kLast_ColorMode + 1)); in GrRandomColor() 107 color = GrColorPackRGBA(random->nextULessThan(256), in GrRandomColor() 108 random->nextULessThan(256), in GrRandomColor() 109 random->nextULessThan(256), in GrRandomColor() 113 uint8_t alpha = random->nextULessThan(256); in GrRandomColor() 133 CoverageMode colorMode = CoverageMode(random->nextULessThan(kLast_CoverageMode + 1)); in GrRandomCoverage() 143 coverage = random->nextULessThan(256); in GrRandomCoverage()
|
/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 | 225 int numProcs = d->fRandom->nextULessThan(maxStages + 1); in set_random_color_coverage_stages() 226 int numColorProcs = d->fRandom->nextULessThan(numProcs + 1); in set_random_color_coverage_stages() 337 GrAAType aaType = kAATypes[random.nextULessThan(SK_ARRAY_COUNT(kAATypes))]; in ProgramUnitTest()
|
D | ProcessorTest.cpp | 306 texel_color(random.nextULessThan(256), random.nextULessThan(256)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() 317 alphaData.get()[256 * y + x] = random.nextULessThan(256); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
|
D | PDFDeflateWStreamTest.cpp | 110 uint32_t size = random.nextULessThan(10000); in DEF_TEST()
|
/external/skia/src/effects/ |
D | GrAlphaThresholdFragmentProcessor.cpp | 159 uint32_t width = d->fRandom->nextULessThan(kMaxWidth); in TestCreate() 160 uint32_t height = d->fRandom->nextULessThan(kMaxHeight); in TestCreate() 161 uint32_t x = d->fRandom->nextULessThan(kMaxWidth - width); in TestCreate() 162 uint32_t y = d->fRandom->nextULessThan(kMaxHeight - height); in TestCreate()
|
/external/skia/gm/ |
D | imageblur.cpp | 27 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw() 28 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
|
D | imagemagnifier.cpp | 31 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG() 32 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
|
D | discard.cpp | 61 switch (rand.nextULessThan(3)) { in onDraw()
|
/external/skia/include/utils/ |
D | SkRandom.h | 96 uint32_t nextULessThan(uint32_t count) { in nextULessThan() function
|
/external/skia/src/gpu/ops/ |
D | GrDashOp.cpp | 941 AAMode aaMode = static_cast<AAMode>(d->fRandom->nextULessThan(GrDashOp::kAAModeCnt)); in TestCreate() 1163 AAMode aaMode = static_cast<AAMode>(d->fRandom->nextULessThan(GrDashOp::kAAModeCnt)); in TestCreate() 1199 AAMode aaMode = static_cast<AAMode>(random->nextULessThan(GrDashOp::kAAModeCnt)); in DRAW_OP_TEST_DEFINE() 1218 SkPaint::Cap cap = SkPaint::Cap(random->nextULessThan(SkPaint::kCapCount)); in DRAW_OP_TEST_DEFINE() 1231 Intervals(random->nextULessThan(kCloseOpen_Intervals + 1)); in DRAW_OP_TEST_DEFINE()
|
D | GrDrawVerticesOp.cpp | 353 indices->push_back(random->nextULessThan((uint16_t)maxVertex)); in randomize_params() 359 GrPrimitiveType type = GrPrimitiveType(random->nextULessThan(kLast_GrPrimitiveType + 1)); in DRAW_OP_TEST_DEFINE()
|