/third_party/skia/src/gpu/ |
H A D | GrDefaultGeoProcFactory.cpp | 259 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 D | GrTestUtils.cpp | 248 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 D | GrProcessorUnitTest.cpp | 205 return data->fRandom->nextBool() ? MakeChildFP(data) : nullptr; in MakeOptionalChildFP()
|
/third_party/skia/src/gpu/effects/ |
H A D | GrDistanceFieldGeoProc.cpp | 299 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 D | GrBitmapTextGeoProc.cpp | 214 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 D | GrGaussianConvolutionFragmentProcessor.cpp | 257 Direction dir = d->fRandom->nextBool() ? Direction::kY : Direction::kX; in TestCreate() 272 if (d->fRandom->nextBool()) { in TestCreate()
|
H A D | GrCoverageSetOpXP.cpp | 194 bool invertCoverage = d->fRandom->nextBool(); in TestGet()
|
H A D | GrBicubicEffect.cpp | 260 auto kernel = d->fRandom->nextBool() ? GrBicubicEffect::gMitchell in TestCreate() 269 if (d->fRandom->nextBool()) { in TestCreate()
|
H A D | GrBezierEffect.cpp | 199 bool usesLocalCoords = d->fRandom->nextBool(); in TestCreate() 361 bool usesLocalCoords = d->fRandom->nextBool(); in TestCreate()
|
H A D | GrBlendFragmentProcessor.cpp | 185 if (d->fRandom->nextBool()) { in TestCreate()
|
/third_party/skia/src/gpu/ops/ |
H A D | FillRectOp.cpp | 570 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 D | LatticeOp.cpp | 472 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 D | TextureOp.cpp | 1394 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 D | DrawVerticesOp.cpp | 705 bool hasTexCoords = random->nextBool(); 706 bool hasIndices = random->nextBool(); 707 bool hasColors = random->nextBool(); 733 if (numSamples > 1 && random->nextBool()) {
|
H A D | GrOvalOpFactory.cpp | 265 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 D | AtlasTextOp.cpp | 537 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 D | DrawAtlasOp.cpp | 379 bool hasColors = random->nextBool(); in GR_DRAW_OP_TEST_DEFINE() 385 if (numSamples > 1 && random->nextBool()) { in GR_DRAW_OP_TEST_DEFINE()
|
H A D | StrokeRectOp.cpp | 995 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 D | random_parse_path.cpp | 53 if (rand->nextBool()) { in add_comma() 73 char symbol = legal.fSymbol | (rand->nextBool() ? 0x20 : 0); in MakeRandomParsePathPiece()
|
/third_party/skia/tests/ |
H A D | PathOpsTightBoundsTest.cpp | 24 if (ran.nextBool()) { in testTightBoundsLines() 67 if (ran.nextBool()) { in testTightBoundsQuads() 74 if (ran.nextBool()) { in testTightBoundsQuads()
|
H A D | ProgramsTest.cpp | 141 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 D | MatrixBench.cpp | 150 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 D | SkRandom.h | 113 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool() function in SkRandom 115 /** A biased version of nextBool().
|
/third_party/skia/fuzz/ |
H A D | Fuzz.h | 80 bool nextBool() { in nextBool() function in Fuzz
|
/third_party/skia/gm/ |
H A D | animatedimageblurs.cpp | 100 if (rand->nextBool()) { in init()
|