Home
last modified time | relevance | path

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

12

/external/skia/include/gpu/
DGrTestUtils.h51 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/
DHairlinePathBench.cpp97 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 …]
DPicturePlaybackBench.cpp195 case kTiled: x = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
196 y = SkScalar(256 * rand.nextULessThan(4)); in onDraw()
/external/skia/src/gpu/
DGrTestUtils.cpp36 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 …]
DGrBatchTest.cpp49 uint32_t index = random->nextULessThan(static_cast<uint32_t>(SK_ARRAY_COUNT(gTestBatches))); in GrRandomBatch()
/external/skia/src/gpu/effects/
DGrConstColorProcessor.cpp113 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()
DGrSimpleTextureEffect.cpp71 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()
DGrBitmapTextGeoProc.cpp178 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()
DGrDistanceFieldGeoProc.cpp255 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()
DGrConvexPolyEffect.cpp74 GrPrimitiveEdgeType edgeType = static_cast<GrPrimitiveEdgeType>(random->nextULessThan( in TestCreate()
368 int count = random->nextULessThan(kMaxEdges) + 1; in TestCreate()
377 random->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
DGrOvalEffect.cpp89 et = (GrPrimitiveEdgeType)random->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate()
272 et = (GrPrimitiveEdgeType)random->nextULessThan(kGrProcessorEdgeTypeCnt); in TestCreate()
DGrBezierEffect.cpp232 random->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
447 random->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
674 random->nextULessThan(kGrProcessorEdgeTypeCnt)); in TestCreate()
DGrCoverageSetOpXP.cpp257 SkRegion::Op regionOp = SkRegion::Op(random->nextULessThan(SkRegion::kLastOp + 1)); 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.cpp211 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()
DGLProgramsTest.cpp152 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()
DDeflateWStream.cpp15 uint32_t size = random.nextULessThan(10000); in DEF_TEST()
DGrTRecorderTest.cpp49 rand.nextULessThan(10))); in test_empty_back_and_pop()
/external/skia/gm/
Dimagemagnifier.cpp45 int x = rand.nextULessThan(WIDTH); in onDraw()
46 int y = rand.nextULessThan(HEIGHT); in onDraw()
Dimageblur.cpp46 int x = rand.nextULessThan(WIDTH); in onDraw()
47 int y = rand.nextULessThan(HEIGHT); in onDraw()
Dmixedxfermodes.cpp120 static_cast<SkXfermode::Mode>(random.nextULessThan(SkXfermode::kLastMode + 1)); in onDraw()
121 ShapeType shapeType = static_cast<ShapeType>(random.nextULessThan(kNumShapeTypes)); in onDraw()
Ddiscard.cpp61 switch (rand.nextULessThan(3)) { in onDraw()
Dvariedtext.cpp85 random.nextULessThan(SK_ARRAY_COUNT(fTypefacesToUnref))]; in onOnceBeforeDraw()
/external/skia/src/effects/
DSkMagnifierImageFilter.cpp219 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/
DSkRandom.h95 uint32_t nextULessThan(uint32_t count) { in nextULessThan() function

12