Home
last modified time | relevance | path

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

12

/external/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp269 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
282 GrSamplerParams params(tileModes, d->fRandom->nextBool() ? GrSamplerParams::kBilerp_FilterMode in TestCreate()
286 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
288 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
299 d->fRandom->nextBool()); in TestCreate()
512 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
525 GrSamplerParams params(tileModes, d->fRandom->nextBool() ? GrSamplerParams::kBilerp_FilterMode in TestCreate()
529 flags |= d->fRandom->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0; in TestCreate()
531 flags |= d->fRandom->nextBool() ? kScaleOnly_DistanceFieldEffectFlag : 0; in TestCreate()
540 d->fRandom->nextBool()); in TestCreate()
[all …]
DGrBitmapTextGeoProc.cpp160 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
173 GrSamplerParams params(tileModes, d->fRandom->nextBool() ? GrSamplerParams::kBilerp_FilterMode in TestCreate()
192 d->fRandom->nextBool()); in TestCreate()
DGrSimpleTextureEffect.cpp96 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
107 GrSamplerParams params(tileModes, d->fRandom->nextBool() ? GrSamplerParams::kBilerp_FilterMode in TestCreate()
DGrGaussianConvolutionFragmentProcessor.cpp221 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
225 bool useBounds = d->fRandom->nextBool(); in TestCreate()
229 if (d->fRandom->nextBool()) { in TestCreate()
DGrTextureDomain.cpp336 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
347 bool bilerp = mode != GrTextureDomain::kRepeat_Mode ? d->fRandom->nextBool() : false; in TestCreate()
451 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
DGrMatrixConvolutionEffect.cpp255 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
276 bool convolveAlpha = d->fRandom->nextBool(); in TestCreate()
DGrCoverageSetOpXP.cpp250 bool invertCoverage = !d->fRenderTargetContext->hasMixedSamples() && d->fRandom->nextBool(); in TestGet()
DGrBicubicEffect.cpp180 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
/external/skia/tests/
DGLProgramsTest.cpp147 GrSurfaceOrigin origin = random->nextBool() ? kTopLeft_GrSurfaceOrigin in random_render_target_context()
149 int sampleCnt = random->nextBool() ? SkTMin(4, caps->maxSampleCount()) : 0; in random_render_target_context()
244 if (random->nextBool()) { in set_random_state()
247 if (random->nextBool()) { in set_random_state()
250 return random->nextBool(); in set_random_state()
274 if (random->nextBool()) { in get_random_stencil()
DPathOpsTightBoundsTest.cpp25 if (ran.nextBool()) { in testTightBoundsLines()
68 if (ran.nextBool()) { in testTightBoundsQuads()
75 if (ran.nextBool()) { in testTightBoundsQuads()
/external/skia/src/gpu/
DGrDefaultGeoProcFactory.cpp242 if (d->fRandom->nextBool()) { in TestCreate()
245 if (d->fRandom->nextBool()) { in TestCreate()
248 if (d->fRandom->nextBool()) { in TestCreate()
251 if (d->fRandom->nextBool()) { in TestCreate()
260 d->fRandom->nextBool(), in TestCreate()
DGrTestUtils.cpp230 bool strokeAndFill = random->nextBool(); in randomize_stroke_rec()
231 SkScalar strokeWidth = random->nextBool() ? 0.f : 1.f; in randomize_stroke_rec()
254 if (random->nextBool()) { in TestStyle()
/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/ops/
DGrDrawVerticesOp.cpp368 bool hasTexCoords = random->nextBool(); in DRAW_OP_TEST_DEFINE()
369 bool hasIndices = random->nextBool(); in DRAW_OP_TEST_DEFINE()
370 bool hasColors = random->nextBool(); in DRAW_OP_TEST_DEFINE()
387 random->nextBool() ? GrRenderTargetContext::ColorArrayType::kPremulGrColor in DRAW_OP_TEST_DEFINE()
DGrNonAAFillRectOp.cpp203 bool hasLocalRect = random->nextBool(); in DRAW_OP_TEST_DEFINE()
204 bool hasLocalMatrix = random->nextBool(); in DRAW_OP_TEST_DEFINE()
DGrNonAAStrokeRectOp.cpp204 SkScalar strokeWidth = random->nextBool() ? 0.0f : 2.0f; in DRAW_OP_TEST_DEFINE()
210 return GrNonAAStrokeRectOp::Make(color, viewMatrix, rect, strokeRec, random->nextBool()); in DRAW_OP_TEST_DEFINE()
DGrNonAAFillRectPerspectiveOp.cpp245 bool hasLocalMatrix = random->nextBool(); in DRAW_OP_TEST_DEFINE()
252 bool hasLocalRect = random->nextBool(); in DRAW_OP_TEST_DEFINE()
DGrAAStrokeRectOp.cpp597 bool miterStroke = random->nextBool(); in DRAW_OP_TEST_DEFINE()
601 random->nextBool() ? SkRect::MakeXYWH(10, 10, 50, 40) : SkRect::MakeXYWH(6, 7, 0, 0); in DRAW_OP_TEST_DEFINE()
/external/skia/bench/
DMatrixBench.cpp150 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f; in onDelayedSetup()
152 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx; in onDelayedSetup()
/external/skia/src/gpu/text/
DGrAtlasTextContext.cpp361 skPaint.setLCDRenderText(random->nextBool()); in DRAW_OP_TEST_DEFINE()
362 skPaint.setAntiAlias(skPaint.isLCDRenderText() ? true : random->nextBool()); in DRAW_OP_TEST_DEFINE()
363 skPaint.setSubpixelText(random->nextBool()); in DRAW_OP_TEST_DEFINE()
/external/skia/include/utils/
DSkRandom.h120 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool() function
/external/skia/gm/
Danimatedimageblurs.cpp92 if (rand->nextBool()) { in init()
/external/skia/samplecode/
DSamplePathText.cpp130 *d = ((1 - t) / 60 + t / 10) * (fRand.nextBool() ? screensize : -screensize); in reset()
134 v.fDSpin = ((1 - t) * 360 / 7.5 + t * 360 / 1.5) * (fRand.nextBool() ? 1 : -1); in reset()
DSamplePathFuzz.cpp203 return fRand.nextBool(); in makeBool()
276 bool antiAlias = fRand.nextBool(); in makePaint()
/external/skia/src/effects/
DSkMorphologyImageFilter.cpp383 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
387 Direction dir = d->fRandom->nextBool() ? kX_Direction : kY_Direction; in TestCreate()
390 MorphologyType type = d->fRandom->nextBool() ? GrMorphologyEffect::kErode_MorphologyType in TestCreate()

12