Home
last modified time | relevance | path

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

1234

/external/skia/src/gpu/ops/
DGrFillRectOp.cpp504 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
507 const GrUserStencilSettings* stencil = random->nextBool() ? nullptr in GR_DRAW_OP_TEST_DEFINE()
511 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
512 aaFlags |= random->nextBool() ? GrQuadAAFlags::kTop : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
513 aaFlags |= random->nextBool() ? GrQuadAAFlags::kRight : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
514 aaFlags |= random->nextBool() ? GrQuadAAFlags::kBottom : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
516 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
517 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
518 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
527 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
[all …]
DGrTextureOp.cpp741 auto origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin : kBottomLeft_GrSurfaceOrigin; in GR_DRAW_OP_TEST_DEFINE()
742 GrMipMapped mipMapped = random->nextBool() ? GrMipMapped::kYes : GrMipMapped::kNo; in GR_DRAW_OP_TEST_DEFINE()
745 fit = random->nextBool() ? SkBackingFit::kApprox : SkBackingFit::kExact; in GR_DRAW_OP_TEST_DEFINE()
772 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
776 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
777 aaFlags |= random->nextBool() ? GrQuadAAFlags::kTop : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
778 aaFlags |= random->nextBool() ? GrQuadAAFlags::kRight : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
779 aaFlags |= random->nextBool() ? GrQuadAAFlags::kBottom : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
780 auto constraint = random->nextBool() ? SkCanvas::kStrict_SrcRectConstraint in GR_DRAW_OP_TEST_DEFINE()
DGrLatticeOp.cpp405 random->nextBool() ? kTopLeft_GrSurfaceOrigin : kBottomLeft_GrSurfaceOrigin; in GR_DRAW_OP_TEST_DEFINE()
412 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
431 bool hasFlags = random->nextBool(); in GR_DRAW_OP_TEST_DEFINE()
437 flags[i] = random->nextBool() ? SkCanvas::Lattice::kTransparent in GR_DRAW_OP_TEST_DEFINE()
456 random->nextBool() ? GrSamplerState::Filter::kNearest : GrSamplerState::Filter::kBilerp; in GR_DRAW_OP_TEST_DEFINE()
/external/skqp/src/gpu/ops/
DGrFillRectOp.cpp455 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
458 const GrUserStencilSettings* stencil = random->nextBool() ? nullptr in GR_DRAW_OP_TEST_DEFINE()
462 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
463 aaFlags |= random->nextBool() ? GrQuadAAFlags::kTop : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
464 aaFlags |= random->nextBool() ? GrQuadAAFlags::kRight : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
465 aaFlags |= random->nextBool() ? GrQuadAAFlags::kBottom : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
467 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
468 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
469 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
478 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
[all …]
DGrTextureOp.cpp599 auto origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin : kBottomLeft_GrSurfaceOrigin; in GR_DRAW_OP_TEST_DEFINE()
600 GrMipMapped mipMapped = random->nextBool() ? GrMipMapped::kYes : GrMipMapped::kNo; in GR_DRAW_OP_TEST_DEFINE()
603 fit = random->nextBool() ? SkBackingFit::kApprox : SkBackingFit::kExact; in GR_DRAW_OP_TEST_DEFINE()
630 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
634 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
635 aaFlags |= random->nextBool() ? GrQuadAAFlags::kTop : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
636 aaFlags |= random->nextBool() ? GrQuadAAFlags::kRight : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
637 aaFlags |= random->nextBool() ? GrQuadAAFlags::kBottom : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
638 auto constraint = random->nextBool() ? SkCanvas::kStrict_SrcRectConstraint in GR_DRAW_OP_TEST_DEFINE()
DGrLatticeOp.cpp399 random->nextBool() ? kTopLeft_GrSurfaceOrigin : kBottomLeft_GrSurfaceOrigin; in GR_DRAW_OP_TEST_DEFINE()
406 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
425 bool hasFlags = random->nextBool(); in GR_DRAW_OP_TEST_DEFINE()
431 flags[i] = random->nextBool() ? SkCanvas::Lattice::kTransparent in GR_DRAW_OP_TEST_DEFINE()
450 random->nextBool() ? GrSamplerState::Filter::kNearest : GrSamplerState::Filter::kBilerp; in GR_DRAW_OP_TEST_DEFINE()
/external/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp284 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
295 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
300 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
302 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
579 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
590 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
595 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
597 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
602 d->fRandom->nextBool(), in TestCreate()
900 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
[all …]
DGrBitmapTextGeoProc.cpp198 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
209 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
228 d->fRandom->nextBool(), in TestCreate()
230 GrTest::TestMatrix(d->fRandom), d->fRandom->nextBool()); in TestCreate()
DGrSimpleTextureEffect.cpp70 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
81 GrSamplerState params(wrapModes, testData->fRandom->nextBool() in TestCreate()
DGrSimpleTextureEffect.fp59 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx
70 GrSamplerState params(wrapModes, testData->fRandom->nextBool()
/external/skqp/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp284 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
295 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
300 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
302 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
579 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
590 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
595 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
597 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
602 d->fRandom->nextBool(), in TestCreate()
899 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
[all …]
DGrBitmapTextGeoProc.cpp199 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
210 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
229 d->fRandom->nextBool(), in TestCreate()
231 GrTest::TestMatrix(d->fRandom), d->fRandom->nextBool()); in TestCreate()
DGrSimpleTextureEffect.cpp70 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
81 GrSamplerState params(wrapModes, testData->fRandom->nextBool() in TestCreate()
DGrSimpleTextureEffect.fp59 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx
70 GrSamplerState params(wrapModes, testData->fRandom->nextBool()
/external/skia/src/gpu/
DGrDefaultGeoProcFactory.cpp280 if (d->fRandom->nextBool()) { in TestCreate()
283 if (d->fRandom->nextBool()) { in TestCreate()
286 if (d->fRandom->nextBool()) { in TestCreate()
289 if (d->fRandom->nextBool()) { in TestCreate()
291 if (d->fRandom->nextBool()) { in TestCreate()
295 if (d->fRandom->nextBool()) { in TestCreate()
305 d->fRandom->nextBool(), in TestCreate()
/external/skqp/src/gpu/
DGrDefaultGeoProcFactory.cpp406 if (d->fRandom->nextBool()) { in TestCreate()
409 if (d->fRandom->nextBool()) { in TestCreate()
412 if (d->fRandom->nextBool()) { in TestCreate()
415 if (d->fRandom->nextBool()) { in TestCreate()
417 if (d->fRandom->nextBool()) { in TestCreate()
421 if (d->fRandom->nextBool()) { in TestCreate()
424 if (d->fRandom->nextBool()) { in TestCreate()
434 d->fRandom->nextBool(), in TestCreate()
DGrTestUtils.cpp241 bool strokeAndFill = random->nextBool(); in randomize_stroke_rec()
242 SkScalar strokeWidth = random->nextBool() ? 0.f : 1.f; in randomize_stroke_rec()
265 if (random->nextBool()) { in TestStyle()
/external/skqp/src/gpu/text/
DGrTextContext.cpp231 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
234 font.setEdging(random->nextBool() ? SkFont::Edging::kAntiAlias : SkFont::Edging::kAlias); in GR_DRAW_OP_TEST_DEFINE()
236 font.setSubpixel(random->nextBool()); in GR_DRAW_OP_TEST_DEFINE()
/external/skqp/tools/
Drandom_parse_path.cpp53 if (rand->nextBool()) { in add_comma()
73 char symbol = legal.fSymbol | (rand->nextBool() ? 0x20 : 0); in MakeRandomParsePathPiece()
/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/src/gpu/text/
DGrTextContext.cpp248 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
251 font.setEdging(random->nextBool() ? SkFont::Edging::kAntiAlias : SkFont::Edging::kAlias); in GR_DRAW_OP_TEST_DEFINE()
253 font.setSubpixel(random->nextBool()); in GR_DRAW_OP_TEST_DEFINE()
/external/skia/tests/
DPathOpsTightBoundsTest.cpp25 if (ran.nextBool()) { in testTightBoundsLines()
68 if (ran.nextBool()) { in testTightBoundsQuads()
75 if (ran.nextBool()) { in testTightBoundsQuads()
/external/skqp/tests/
DPathOpsTightBoundsTest.cpp25 if (ran.nextBool()) { in testTightBoundsLines()
68 if (ran.nextBool()) { in testTightBoundsQuads()
75 if (ran.nextBool()) { in testTightBoundsQuads()
/external/skqp/gm/
Datlastext.cpp122 if (random.nextBool()) { in drawText()
132 if (random.nextBool()) { in drawText()
/external/skia/gm/
Datlastext.cpp123 if (random.nextBool()) { in drawText()
133 if (random.nextBool()) { in drawText()

1234