Home
last modified time | relevance | path

Searched refs:nextBool (Results 1 – 25 of 43) sorted by relevance

12

/external/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp243 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
254 GrTextureParams params(tileModes, d->fRandom->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate()
263 d->fRandom->nextBool() ? in TestCreate()
265 d->fRandom->nextBool()); in TestCreate()
453 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
464 GrTextureParams params(tileModes, d->fRandom->nextBool() ? GrTextureParams::kBilerp_FilterMode in TestCreate()
471 d->fRandom->nextBool() ? in TestCreate()
473 d->fRandom->nextBool()); in TestCreate()
725 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
736 GrTextureParams params(tileModes, d->fRandom->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate()
[all …]
DGrSimpleTextureEffect.cpp50 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
61 GrTextureParams params(tileModes, d->fRandom->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate()
DGrBitmapTextGeoProc.cpp168 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
179 GrTextureParams params(tileModes, d->fRandom->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate()
197 d->fRandom->nextBool()); in TestCreate()
DGrConvolutionEffect.cpp210 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
212 Direction dir = d->fRandom->nextBool() ? kX_Direction : kY_Direction; in TestCreate()
223 bool useBounds = d->fRandom->nextBool(); in TestCreate()
DGrTextureDomain.cpp284 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
294 bool bilerp = mode != GrTextureDomain::kRepeat_Mode ? d->fRandom->nextBool() : false; in TestCreate()
295 GrCoordSet coords = d->fRandom->nextBool() ? kLocal_GrCoordSet : kDevice_GrCoordSet; in TestCreate()
DGrMatrixConvolutionEffect.cpp228 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
247 bool convolveAlpha = d->fRandom->nextBool(); in TestCreate()
DGrDashingEffect.cpp980 d->fRandom->nextBool()); in TestCreate()
1211 d->fRandom->nextBool()); in TestCreate()
1243 bool useAA = random->nextBool(); in DRAW_BATCH_TEST_DEFINE()
1244 bool msaaRT = random->nextBool(); in DRAW_BATCH_TEST_DEFINE()
1248 if (random->nextBool()) { in DRAW_BATCH_TEST_DEFINE()
DGrBicubicEffect.cpp183 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
/external/skia/src/gpu/
DGrDefaultGeoProcFactory.cpp276 if (d->fRandom->nextBool()) { in TestCreate()
279 if (d->fRandom->nextBool()) { in TestCreate()
282 if (d->fRandom->nextBool()) { in TestCreate()
285 if (d->fRandom->nextBool()) { in TestCreate()
293 d->fRandom->nextBool(), in TestCreate()
294 d->fRandom->nextBool(), in TestCreate()
DGrTestUtils.cpp222 bool strokeAndFill = random->nextBool(); in randomize_stroke_rec()
223 SkScalar strokeWidth = random->nextBool() ? 0.f : 1.f; in randomize_stroke_rec()
/external/skia/tests/
DPathOpsTightBoundsTest.cpp25 if (ran.nextBool()) { in testTightBoundsLines()
68 if (ran.nextBool()) { in testTightBoundsQuads()
75 if (ran.nextBool()) { in testTightBoundsQuads()
DGLProgramsTest.cpp160 texDesc.fOrigin = random->nextBool() == true ? kTopLeft_GrSurfaceOrigin : in random_render_target()
162 texDesc.fSampleCnt = random->nextBool() == true ? SkTMin(4, caps->maxSampleCount()) : 0; in random_render_target()
268 state |= random->nextBool() * i; in set_random_state()
296 if (random->nextBool()) { in set_random_stencil()
/external/skia/tools/
Drandom_parse_path.cpp53 if (rand->nextBool()) { in add_comma()
73 char symbol = legal.fSymbol | (rand->nextBool() ? 0x20 : 0); in MakeRandomParsePathPiece()
/external/skia/fuzz/
DFuzzParsePath.cpp58 if (fuzz->nextBool()) { in add_comma()
78 char symbol = legal.fSymbol | (fuzz->nextBool() ? 0x20 : 0); in MakeRandomParsePathPiece()
DFuzz.h19 bool nextBool();
/external/skia/src/gpu/batches/
DGrDrawVerticesBatch.cpp285 bool hasTexCoords = random->nextBool(); in DRAW_BATCH_TEST_DEFINE()
286 bool hasIndices = random->nextBool(); in DRAW_BATCH_TEST_DEFINE()
287 bool hasColors = random->nextBool(); in DRAW_BATCH_TEST_DEFINE()
DGrNonAAStrokeRectBatch.cpp248 SkScalar strokeWidth = random->nextBool() ? 0.0f : 1.0f; in DRAW_BATCH_TEST_DEFINE()
250 return GrNonAAStrokeRectBatch::Create(color, viewMatrix, rect, strokeWidth, random->nextBool()); in DRAW_BATCH_TEST_DEFINE()
DGrNonAAFillRectBatch.cpp331 bool hasLocalRect = random->nextBool(); in DRAW_BATCH_TEST_DEFINE()
332 bool hasLocalMatrix = random->nextBool(); in DRAW_BATCH_TEST_DEFINE()
/external/skia/bench/
DMatrixBench.cpp151 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f; in onDelayedSetup()
153 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx; in onDelayedSetup()
/external/skia/src/effects/
DSkArithmeticMode_gpu.cpp126 bool enforcePMColor = d->fRandom->nextBool(); in TestCreate()
291 bool enforcePMColor = d->fRandom->nextBool(); in TestCreate()
DSkMorphologyImageFilter.cpp437 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
439 Direction dir = d->fRandom->nextBool() ? kX_Direction : kY_Direction; in TestCreate()
442 MorphologyType type = d->fRandom->nextBool() ? GrMorphologyEffect::kErode_MorphologyType : in TestCreate()
DSkAvoidXfermode.cpp338 SkAvoidXfermode::Mode mode = d->fRandom->nextBool() ? SkAvoidXfermode::kAvoidColor_Mode in TestCreate()
517 SkAvoidXfermode::Mode mode = d->fRandom->nextBool() ? SkAvoidXfermode::kAvoidColor_Mode in TestCreate()
/external/skia/src/gpu/text/
DGrAtlasTextContext.cpp380 skPaint.setLCDRenderText(random->nextBool()); in DRAW_BATCH_TEST_DEFINE()
381 skPaint.setAntiAlias(skPaint.isLCDRenderText() ? true : random->nextBool()); in DRAW_BATCH_TEST_DEFINE()
382 skPaint.setSubpixelText(random->nextBool()); in DRAW_BATCH_TEST_DEFINE()
/external/skia/include/utils/
DSkRandom.h129 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool() function
/external/skia/samplecode/
DSamplePathFuzz.cpp203 return fRand.nextBool(); in makeBool()
276 bool antiAlias = fRand.nextBool(); in makePaint()

12