/external/skia/include/gpu/ |
D | GrTestUtils.h | 51 ColorMode colorMode = ColorMode(random->nextULessThan(kLast_ColorMode + 1)); in GrRandomColor() 61 color = GrColorPackRGBA(random->nextULessThan(256), in GrRandomColor() 62 random->nextULessThan(256), in GrRandomColor() 63 random->nextULessThan(256), in GrRandomColor() 67 uint8_t alpha = random->nextULessThan(256); in GrRandomColor() 87 CoverageMode colorMode = CoverageMode(random->nextULessThan(kLast_CoverageMode + 1)); in GrRandomCoverage() 96 coverage = random->nextULessThan(256); in GrRandomCoverage()
|
/external/skia/bench/ |
D | HairlinePathBench.cpp | 97 int base1 = 2 * rand.nextULessThan(hSize); in makePath() 98 int base2 = 2 * rand.nextULessThan(hSize); in makePath() 99 int base3 = 2 * rand.nextULessThan(hSize); in makePath() 129 int base1 = 2 * rand.nextULessThan(hSize); in makePath() 130 int base2 = 2 * rand.nextULessThan(hSize); in makePath() 131 int base3 = 2 * rand.nextULessThan(hSize); in makePath() 162 int base1 = 2 * rand.nextULessThan(hSize); in makePath() 163 int base2 = 2 * rand.nextULessThan(hSize); in makePath() 164 int base3 = 2 * rand.nextULessThan(hSize); in makePath() 197 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 | 36 return gMatrices[random->nextULessThan(count)]; in test_matrix() 38 return gMatrices[random->nextULessThan(count - kPerspectiveCount)]; in test_matrix() 68 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixPreservesRightAngles() 94 return gMatrices[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gMatrices)))]; in TestMatrixRectStaysRect() 111 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestRect() 123 return gRects[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRects)))]; in TestSquare() 141 return gRRect[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gRRect)))]; in TestRRectSimple() 182 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPath() 216 return gPath[random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gPath)))]; in TestPathConvex() 221 SkStrokeRec::InitStyle(random->nextULessThan(SkStrokeRec::kFill_InitStyle + 1)); in TestStrokeRec() [all …]
|
D | GrBatchTest.cpp | 49 uint32_t index = random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gTestBatches))); in GrRandomBatch()
|
/external/skia/src/gpu/effects/ |
D | GrConstColorProcessor.cpp | 113 int colorPicker = random->nextULessThan(3); in TestCreate() 116 uint32_t a = random->nextULessThan(0x100); in TestCreate() 117 uint32_t r = random->nextULessThan(a+1); in TestCreate() 118 uint32_t g = random->nextULessThan(a+1); in TestCreate() 119 uint32_t b = random->nextULessThan(a+1); in TestCreate() 127 color = random->nextULessThan(0x100); in TestCreate() 131 InputMode mode = static_cast<InputMode>(random->nextULessThan(kInputModeCnt)); in TestCreate()
|
D | GrSimpleTextureEffect.cpp | 71 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 72 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 81 GrCoordSet coordSet = kCoordSets[random->nextULessThan(SK_ARRAY_COUNT(kCoordSets))]; in TestCreate()
|
D | GrBitmapTextGeoProc.cpp | 178 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 179 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 185 switch (random->nextULessThan(3)) { in TestCreate()
|
D | GrDistanceFieldGeoProc.cpp | 255 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 256 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 479 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 480 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 744 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate() 745 kTileModes[random->nextULessThan(SK_ARRAY_COUNT(kTileModes))], in TestCreate()
|
D | GrConvexPolyEffect.cpp | 74 GrPrimitiveEdgeType edgeType = static_cast<GrPrimitiveEdgeType>(random->nextULessThan( in TestCreate() 368 int count = random->nextULessThan(kMaxEdges) + 1; in TestCreate() 377 random->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
|
D | GrOvalEffect.cpp | 89 et = (GrPrimitiveEdgeType)random->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate() 272 et = (GrPrimitiveEdgeType)random->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate()
|
D | GrBezierEffect.cpp | 232 random->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate() 447 random->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate() 674 random->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
|
D | GrCoverageSetOpXP.cpp | 257 SkRegion::Op regionOp = SkRegion::Op(random->nextULessThan(SkRegion::kLastOp + 1)); 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 | 211 int insertionMethod = random.nextULessThan(numValidMethods); in TestTLList() 221 int n = random.nextULessThan(list1.count()); in TestTLList() 265 int n = random.nextULessThan(list1.count()); in TestTLList()
|
D | GLProgramsTest.cpp | 152 int numProcs = random->nextULessThan(maxStages + 1); in set_random_color_coverage_stages() 153 int numColorProcs = random->nextULessThan(numProcs + 1); in set_random_color_coverage_stages()
|
D | DeflateWStream.cpp | 15 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 | 45 int x = rand.nextULessThan(WIDTH); in onDraw() 46 int y = rand.nextULessThan(HEIGHT); in onDraw()
|
D | imageblur.cpp | 46 int x = rand.nextULessThan(WIDTH); in onDraw() 47 int y = rand.nextULessThan(HEIGHT); in onDraw()
|
D | mixedxfermodes.cpp | 120 static_cast<SkXfermode::Mode>(random.nextULessThan(SkXfermode::kLastMode + 1)); in onDraw() 121 ShapeType shapeType = static_cast<ShapeType>(random.nextULessThan(kNumShapeTypes)); in onDraw()
|
D | discard.cpp | 61 switch (rand.nextULessThan(3)) { in onDraw()
|
D | variedtext.cpp | 85 random.nextULessThan(SK_ARRAY_COUNT(fTypefacesToUnref))]; in onOnceBeforeDraw()
|
/external/skia/src/effects/ |
D | SkMagnifierImageFilter.cpp | 219 uint32_t width = random->nextULessThan(kMaxWidth); in TestCreate() 220 uint32_t height = random->nextULessThan(kMaxHeight); in TestCreate() 221 uint32_t x = random->nextULessThan(kMaxWidth - width); in TestCreate() 222 uint32_t y = random->nextULessThan(kMaxHeight - height); in TestCreate() 223 uint32_t inset = random->nextULessThan(kMaxInset); in TestCreate()
|
/external/skia/include/utils/ |
D | SkRandom.h | 95 uint32_t nextULessThan(uint32_t count) { in nextULessThan() function
|