Home
last modified time | relevance | path

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

1234

/third_party/flutter/skia/src/gpu/ops/
DGrFillRectOp.cpp389 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
392 const GrUserStencilSettings* stencil = random->nextBool() ? nullptr in GR_DRAW_OP_TEST_DEFINE()
396 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
397 aaFlags |= random->nextBool() ? GrQuadAAFlags::kTop : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
398 aaFlags |= random->nextBool() ? GrQuadAAFlags::kRight : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
399 aaFlags |= random->nextBool() ? GrQuadAAFlags::kBottom : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
401 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
402 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
403 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
412 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
[all …]
DGrTextureOp.cpp682 auto origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin : kBottomLeft_GrSurfaceOrigin; in GR_DRAW_OP_TEST_DEFINE()
683 GrMipMapped mipMapped = random->nextBool() ? GrMipMapped::kYes : GrMipMapped::kNo; in GR_DRAW_OP_TEST_DEFINE()
686 fit = random->nextBool() ? SkBackingFit::kApprox : SkBackingFit::kExact; in GR_DRAW_OP_TEST_DEFINE()
713 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
717 aaFlags |= random->nextBool() ? GrQuadAAFlags::kLeft : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
718 aaFlags |= random->nextBool() ? GrQuadAAFlags::kTop : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
719 aaFlags |= random->nextBool() ? GrQuadAAFlags::kRight : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
720 aaFlags |= random->nextBool() ? GrQuadAAFlags::kBottom : GrQuadAAFlags::kNone; in GR_DRAW_OP_TEST_DEFINE()
721 bool useDomain = random->nextBool(); in GR_DRAW_OP_TEST_DEFINE()
DGrLatticeOp.cpp407 GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin in GR_DRAW_OP_TEST_DEFINE()
417 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
436 bool hasFlags = random->nextBool(); in GR_DRAW_OP_TEST_DEFINE()
442 flags[i] = random->nextBool() ? SkCanvas::Lattice::kTransparent in GR_DRAW_OP_TEST_DEFINE()
461 random->nextBool() ? GrSamplerState::Filter::kNearest : GrSamplerState::Filter::kBilerp; in GR_DRAW_OP_TEST_DEFINE()
/third_party/skia/src/gpu/
DGrDefaultGeoProcFactory.cpp250 if (d->fRandom->nextBool()) { in TestCreate()
253 if (d->fRandom->nextBool()) { in TestCreate()
256 if (d->fRandom->nextBool()) { in TestCreate()
258 if (d->fRandom->nextBool()) { in TestCreate()
259 flags |= (d->fRandom->nextBool()) ? kCoverageAttributeTweak_GPFlag in TestCreate()
263 if (d->fRandom->nextBool()) { in TestCreate()
270 bool readsLocalCoords = d->fRandom->nextBool(); in TestCreate()
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()
/third_party/flutter/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp285 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
296 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
301 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
303 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
581 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
592 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
597 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
599 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
604 d->fRandom->nextBool(), in TestCreate()
903 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()
DGrColorMatrixFragmentProcessor.fp86 bool unpremul = d->fRandom->nextBool();
87 bool clampRGB = d->fRandom->nextBool();
88 bool premul = d->fRandom->nextBool();
DGrSimpleTextureEffect.fp59 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx
70 GrSamplerState params(wrapModes, testData->fRandom->nextBool()
DGrBicubicEffect.cpp212 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
216 SkAlphaType alphaType = d->fRandom->nextBool() ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; in TestCreate()
/third_party/flutter/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()
DGrTestUtils.cpp243 bool strokeAndFill = random->nextBool(); in randomize_stroke_rec()
244 SkScalar strokeWidth = random->nextBool() ? 0.f : 1.f; in randomize_stroke_rec()
267 if (random->nextBool()) { in TestStyle()
/third_party/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp291 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
296 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
298 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
558 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
563 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
565 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
568 bool wideColor = d->fRandom->nextBool(); in TestCreate()
871 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
876 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
878 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
[all …]
DGrBitmapTextGeoProc.cpp206 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
225 bool wideColor = d->fRandom->nextBool(); in TestCreate()
227 bool usesW = d->fRandom->nextBool(); in TestCreate()
/third_party/skia/src/gpu/ops/
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()
DLatticeOp.cpp466 GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin in GR_DRAW_OP_TEST_DEFINE()
482 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
501 bool hasFlags = random->nextBool(); in GR_DRAW_OP_TEST_DEFINE()
507 flags[i] = random->nextBool() ? SkCanvas::Lattice::kTransparent in GR_DRAW_OP_TEST_DEFINE()
526 random->nextBool() ? GrSamplerState::Filter::kNearest : GrSamplerState::Filter::kLinear; in GR_DRAW_OP_TEST_DEFINE()
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() ? skgpu::v1::TextureOp::Saturate::kYes in GR_DRAW_OP_TEST_DEFINE()
/third_party/flutter/skia/src/gpu/effects/generated/
DGrColorMatrixFragmentProcessor.cpp113 bool unpremul = d->fRandom->nextBool(); in TestCreate()
114 bool clampRGB = d->fRandom->nextBool(); in TestCreate()
115 bool premul = d->fRandom->nextBool(); in TestCreate()
DGrSimpleTextureEffect.cpp71 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
82 GrSamplerState params(wrapModes, testData->fRandom->nextBool() in TestCreate()
/third_party/flutter/skia/src/gpu/text/
DGrTextContext.cpp247 if (random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
250 font.setEdging(random->nextBool() ? SkFont::Edging::kAntiAlias : SkFont::Edging::kAlias); in GR_DRAW_OP_TEST_DEFINE()
252 font.setSubpixel(random->nextBool()); in GR_DRAW_OP_TEST_DEFINE()
/third_party/flutter/skia/tools/
Drandom_parse_path.cpp53 if (rand->nextBool()) { in add_comma()
73 char symbol = legal.fSymbol | (rand->nextBool() ? 0x20 : 0); in MakeRandomParsePathPiece()
/third_party/skia/tools/
Drandom_parse_path.cpp53 if (rand->nextBool()) { in add_comma()
73 char symbol = legal.fSymbol | (rand->nextBool() ? 0x20 : 0); in MakeRandomParsePathPiece()
/third_party/flutter/skia/tests/
DPathOpsTightBoundsTest.cpp25 if (ran.nextBool()) { in testTightBoundsLines()
68 if (ran.nextBool()) { in testTightBoundsQuads()
75 if (ran.nextBool()) { in testTightBoundsQuads()
/third_party/skia/tests/
DPathOpsTightBoundsTest.cpp24 if (ran.nextBool()) { in testTightBoundsLines()
67 if (ran.nextBool()) { in testTightBoundsQuads()
74 if (ran.nextBool()) { in testTightBoundsQuads()
/third_party/flutter/skia/gm/
Datlastext.cpp147 if (random.nextBool()) { in drawText()
157 if (random.nextBool()) { in drawText()

1234