Home
last modified time | relevance | path

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

/external/skia/include/utils/
DSkRandom.h117 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool() function
270 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool() function
/external/skia/src/gpu/effects/
DGrConvolutionEffect.cpp184 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate()
186 Direction dir = random->nextBool() ? kX_Direction : kY_Direction; in TestCreate()
DGrTextureDomainEffect.cpp192 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate()
199 WrapMode wrapMode = random->nextBool() ? kClamp_WrapMode : kDecal_WrapMode; in TestCreate()
DGrSimpleTextureEffect.cpp73 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate()
DGrConfigConversionEffect.cpp142 swapRB = random->nextBool(); in TestCreate()
/external/skia/src/effects/
DSkMorphologyImageFilter.cpp425 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate()
427 Direction dir = random->nextBool() ? kX_Direction : kY_Direction; in TestCreate()
430 MorphologyType type = random->nextBool() ? GrMorphologyEffect::kErode_MorphologyType : in TestCreate()
DSkDisplacementMapEffect.cpp365 int texIdxDispl = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate()
367 int texIdxColor = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate()
DSkMatrixConvolutionImageFilter.cpp541 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate()
555 bool convolveAlpha = random->nextBool(); in TestCreate()
DSkBicubicImageFilter.cpp326 int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx : in TestCreate()
/external/skia/tests/
DGLProgramsTest.cpp95 pdesc.fDiscardIfOutsideEdge = random.nextBool(); in programUnitTest()
DLListTest.cpp270 if (random.nextBool()) { in TestTLList()
DClipStackTest.cpp839 bool doSave = r.nextBool(); in test_reduced_clip_stack()
868 SkIRect* tightBounds = r.nextBool() ? &tBounds : NULL; in test_reduced_clip_stack()
/external/skia/src/effects/gradients/
DSkGradientShader.cpp834 if (outColors == 1 || (outColors >= 2 && random->nextBool())) { in RandomGradientParams()