Home
last modified time | relevance | path

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

12

/external/skia/src/gpu/effects/
DGrDistanceFieldGeoProc.cpp247 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
258 GrTextureParams params(tileModes, random->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate()
267 random->nextBool() ? in TestCreate()
471 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
482 GrTextureParams params(tileModes, random->nextBool() ? GrTextureParams::kBilerp_FilterMode in TestCreate()
489 random->nextBool() ? kSimilarity_DistanceFieldEffectFlag : 0); in TestCreate()
736 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
747 GrTextureParams params(tileModes, random->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate()
751 flags |= random->nextBool() ? kUniformScale_DistanceFieldEffectMask : 0; in TestCreate()
752 flags |= random->nextBool() ? kBGR_DistanceFieldEffectFlag : 0; in TestCreate()
DGrSimpleTextureEffect.cpp63 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
74 GrTextureParams params(tileModes, random->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate()
DGrConvolutionEffect.cpp225 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
227 Direction dir = random->nextBool() ? kX_Direction : kY_Direction; in TestCreate()
238 bool useBounds = random->nextBool(); in TestCreate()
DGrTextureDomain.cpp293 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
303 bool bilerp = mode != GrTextureDomain::kRepeat_Mode ? random->nextBool() : false; in TestCreate()
304 GrCoordSet coords = random->nextBool() ? kLocal_GrCoordSet : kDevice_GrCoordSet; in TestCreate()
DGrBitmapTextGeoProc.cpp170 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
181 GrTextureParams params(tileModes, random->nextBool() ? GrTextureParams::kBilerp_FilterMode : in TestCreate()
DGrMatrixConvolutionEffect.cpp244 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
262 bool convolveAlpha = random->nextBool(); in TestCreate()
DGrCoverageSetOpXP.cpp258 bool invertCoverage = random->nextBool(); in TestCreate()
DGrBicubicEffect.cpp187 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
DGrConfigConversionEffect.cpp139 swapRB = random->nextBool(); in TestCreate()
DGrDashingEffect.cpp1240 bool useAA = random->nextBool(); in BATCH_TEST_DEFINE()
1241 bool msaaRT = random->nextBool(); in BATCH_TEST_DEFINE()
1245 if (random->nextBool()) { in BATCH_TEST_DEFINE()
/external/skia/tests/
DPathOpsTightBoundsTest.cpp25 if (ran.nextBool()) { in testTightBoundsLines()
68 if (ran.nextBool()) { in testTightBoundsQuads()
75 if (ran.nextBool()) { in testTightBoundsQuads()
DGLProgramsTest.cpp117 texDesc.fOrigin = random->nextBool() == true ? kTopLeft_GrSurfaceOrigin : in random_render_target()
119 texDesc.fSampleCnt = random->nextBool() == true ? SkTMin(4, caps->maxSampleCount()) : 0; in random_render_target()
176 state |= random->nextBool() * i; in set_random_state()
204 if (random->nextBool()) { in set_random_stencil()
DLListTest.cpp269 if (random.nextBool()) { in TestTLList()
/external/skia/src/gpu/
DGrDefaultGeoProcFactory.cpp241 if (random->nextBool()) { in TestCreate()
244 if (random->nextBool()) { in TestCreate()
247 if (random->nextBool()) { in TestCreate()
DGrTestUtils.cpp223 bool strokeAndFill = random->nextBool(); in TestStrokeRec()
224 SkScalar strokeWidth = random->nextBool() ? 0.f : 1.f; in TestStrokeRec()
DGrRectBatch.cpp261 bool hasLocalRect = random->nextBool(); in BATCH_TEST_DEFINE()
262 bool hasLocalMatrix = random->nextBool(); in BATCH_TEST_DEFINE()
DGrContext.cpp1893 geometry.fStrokeWidth = random->nextBool() ? 0.0f : 1.0f; in BATCH_TEST_DEFINE()
1895 return StrokeRectBatch::Create(geometry, random->nextBool()); in BATCH_TEST_DEFINE()
1968 bool hasTexCoords = random->nextBool(); in BATCH_TEST_DEFINE()
1969 bool hasIndices = random->nextBool(); in BATCH_TEST_DEFINE()
1970 bool hasColors = random->nextBool(); in BATCH_TEST_DEFINE()
DGrOvalRenderer.cpp219 random->nextBool(), in TestCreate()
407 random->nextBool(), in TestCreate()
2062 bool useCoverageAA = random->nextBool(); in BATCH_TEST_DEFINE()
2079 bool useCoverageAA = random->nextBool(); in BATCH_TEST_DEFINE()
/external/skia/bench/
DMatrixBench.cpp151 SkScalar rot0 = (fRandom.nextBool()) ? fRandom.nextRangeF(-180, 180) : 0.0f; in onPreDraw()
153 SkScalar sy = (fRandom.nextBool()) ? fRandom.nextRangeF(-3000.f, 3000.f) : sx; in onPreDraw()
/external/skia/src/effects/
DSkArithmeticMode_gpu.cpp150 bool enforcePMColor = rand->nextBool(); in TestCreate()
331 bool enforcePMColor = random->nextBool(); in TestCreate()
DSkMorphologyImageFilter.cpp549 int texIdx = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
551 Direction dir = random->nextBool() ? kX_Direction : kY_Direction; in TestCreate()
554 MorphologyType type = random->nextBool() ? GrMorphologyEffect::kErode_MorphologyType : in TestCreate()
DSkDisplacementMapEffect.cpp522 int texIdxDispl = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
524 int texIdxColor = random->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : in TestCreate()
DSkPerlinNoiseShader.cpp608 bool stitchTiles = random->nextBool(); in TestCreate()
616 SkShader* shader = random->nextBool() ? in TestCreate()
/external/skia/include/utils/
DSkRandom.h129 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool() function
/external/skia/samplecode/
DSamplePathFuzz.cpp202 return fRand.nextBool(); in makeBool()
275 bool antiAlias = fRand.nextBool(); in makePaint()

12