Home
last modified time | relevance | path

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

12

/third_party/skia/src/gpu/
H A DGrDefaultGeoProcFactory.cpp259 if (d->fRandom->nextBool()) {
262 if (d->fRandom->nextBool()) {
265 if (d->fRandom->nextBool()) {
267 if (d->fRandom->nextBool()) {
268 flags |= (d->fRandom->nextBool()) ? kCoverageAttributeTweak_GPFlag
272 if (d->fRandom->nextBool()) {
279 bool readsLocalCoords = d->fRandom->nextBool();
H A DGrTestUtils.cpp248 bool strokeAndFill = random->nextBool(); in randomize_stroke_rec()
249 SkScalar strokeWidth = random->nextBool() ? 0.f : 1.f; in randomize_stroke_rec()
272 if (random->nextBool()) { in TestStyle()
H A DGrProcessorUnitTest.cpp205 return data->fRandom->nextBool() ? MakeChildFP(data) : nullptr; in MakeOptionalChildFP()
/third_party/skia/src/gpu/effects/
H A DGrDistanceFieldGeoProc.cpp299 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
304 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
306 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
574 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
579 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
581 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
584 bool wideColor = d->fRandom->nextBool(); in TestCreate()
895 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
900 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
902 flags |= d->fRandom->nextBool() in TestCreate()
[all...]
H A DGrBitmapTextGeoProc.cpp214 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
233 bool wideColor = d->fRandom->nextBool(); in TestCreate()
235 bool usesW = d->fRandom->nextBool(); in TestCreate()
H A DGrGaussianConvolutionFragmentProcessor.cpp257 Direction dir = d->fRandom->nextBool() ? Direction::kY : Direction::kX; in TestCreate()
272 if (d->fRandom->nextBool()) { in TestCreate()
H A DGrCoverageSetOpXP.cpp194 bool invertCoverage = d->fRandom->nextBool(); in TestGet()
H A DGrBicubicEffect.cpp260 auto kernel = d->fRandom->nextBool() ? GrBicubicEffect::gMitchell in TestCreate()
269 if (d->fRandom->nextBool()) { in TestCreate()
H A DGrBezierEffect.cpp199 bool usesLocalCoords = d->fRandom->nextBool(); in TestCreate()
361 bool usesLocalCoords = d->fRandom->nextBool(); in TestCreate()
H A DGrBlendFragmentProcessor.cpp185 if (d->fRandom->nextBool()) { in TestCreate()
/third_party/skia/src/gpu/ops/
H A DFillRectOp.cpp570 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
573 const GrUserStencilSettings* stencil = random->nextBool() ? nullptr in GR_DRAW_OP_TEST_DEFINE()
577 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
578 aaFlags |= random->nextBool() ? GrQuadAAFlags::kTop : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
579 aaFlags |= random->nextBool() ? GrQuadAAFlags::kRight : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
580 aaFlags |= random->nextBool() ? GrQuadAAFlags::kBottom : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
582 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
583 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
H A DLatticeOp.cpp472 GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin
488 if (random->nextBool()) {
507 bool hasFlags = random->nextBool();
513 flags[i] = random->nextBool() ? SkCanvas::Lattice::kTransparent
532 random->nextBool() ? GrSamplerState::Filter::kNearest : GrSamplerState::Filter::kLinear;
H A DTextureOp.cpp1394 auto origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin : kBottomLeft_GrSurfaceOrigin; in GR_DRAW_OP_TEST_DEFINE()
1395 GrMipmapped mipMapped = random->nextBool() ? GrMipmapped::kYes : GrMipmapped::kNo; in GR_DRAW_OP_TEST_DEFINE()
1398 fit = random->nextBool() ? SkBackingFit::kApprox : SkBackingFit::kExact; in GR_DRAW_OP_TEST_DEFINE()
1426 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
1430 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
1431 aaFlags |= random->nextBool() ? GrQuadAAFlags::kTop : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
1432 aaFlags |= random->nextBool() ? GrQuadAAFlags::kRight : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
1433 aaFlags |= random->nextBool() ? GrQuadAAFlags::kBottom : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
1434 bool useSubset = random->nextBool(); in GR_DRAW_OP_TEST_DEFINE()
1435 auto saturate = random->nextBool() in GR_DRAW_OP_TEST_DEFINE()
[all...]
H A DDrawVerticesOp.cpp705 bool hasTexCoords = random->nextBool();
706 bool hasIndices = random->nextBool();
707 bool hasColors = random->nextBool();
733 if (numSamples > 1 && random->nextBool()) {
H A DGrOvalOpFactory.cpp265 bool stroke = d->fRandom->nextBool();
266 bool roundCaps = stroke ? d->fRandom->nextBool() : false;
267 bool wideColor = d->fRandom->nextBool();
268 bool clipPlane = d->fRandom->nextBool();
269 bool isectPlane = d->fRandom->nextBool();
270 bool unionPlane = d->fRandom->nextBool();
524 bool wideColor = d->fRandom->nextBool();
723 bool stroke = d->fRandom->nextBool();
724 bool wideColor = d->fRandom->nextBool();
725 bool useScale = d->fRandom->nextBool();
[all...]
H A DAtlasTextOp.cpp537 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
540 font.setEdging(random->nextBool() ? SkFont::Edging::kAntiAlias : SkFont::Edging::kAlias); in GR_DRAW_OP_TEST_DEFINE()
542 font.setSubpixel(random->nextBool()); in GR_DRAW_OP_TEST_DEFINE()
H A DDrawAtlasOp.cpp379 bool hasColors = random->nextBool(); in GR_DRAW_OP_TEST_DEFINE()
385 if (numSamples > 1 && random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
H A DStrokeRectOp.cpp995 SkScalar strokeWidth = random->nextBool() ? 0.0f : 2.0f; in GR_DRAW_OP_TEST_DEFINE()
1003 aaType = random->nextBool() ? GrAAType::kMSAA : GrAAType::kNone; in GR_DRAW_OP_TEST_DEFINE()
1010 bool miterStroke = random->nextBool(); in GR_DRAW_OP_TEST_DEFINE()
1014 random->nextBool() ? SkRect::MakeXYWH(10, 10, 50, 40) : SkRect::MakeXYWH(6, 7, 0, 0); in GR_DRAW_OP_TEST_DEFINE()
/third_party/skia/tools/
H A Drandom_parse_path.cpp53 if (rand->nextBool()) { in add_comma()
73 char symbol = legal.fSymbol | (rand->nextBool() ? 0x20 : 0); in MakeRandomParsePathPiece()
/third_party/skia/tests/
H A DPathOpsTightBoundsTest.cpp24 if (ran.nextBool()) { in testTightBoundsLines()
67 if (ran.nextBool()) { in testTightBoundsQuads()
74 if (ran.nextBool()) { in testTightBoundsQuads()
H A DProgramsTest.cpp141 GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin in random_surface_draw_context()
147 int sampleCnt = random->nextBool() ? caps->getRenderTargetSampleCount(2, format) : 1; in random_surface_draw_context()
/third_party/skia/bench/
H A DMatrixBench.cpp150 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f;
152 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx;
/third_party/skia/include/utils/
H A DSkRandom.h113 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool() function in SkRandom
115 /** A biased version of nextBool().
/third_party/skia/fuzz/
H A DFuzz.h80 bool nextBool() { in nextBool() function in Fuzz
/third_party/skia/gm/
H A Danimatedimageblurs.cpp100 if (rand->nextBool()) { in init()

Completed in 23 milliseconds

12