/external/skia/src/gpu/effects/ |
D | GrDistanceFieldGeoProc.cpp | 269 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 …]
|
D | GrBitmapTextGeoProc.cpp | 160 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()
|
D | GrSimpleTextureEffect.cpp | 96 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate() 107 GrSamplerParams params(tileModes, d->fRandom->nextBool() ? GrSamplerParams::kBilerp_FilterMode in TestCreate()
|
D | GrGaussianConvolutionFragmentProcessor.cpp | 221 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate() 225 bool useBounds = d->fRandom->nextBool(); in TestCreate() 229 if (d->fRandom->nextBool()) { in TestCreate()
|
D | GrTextureDomain.cpp | 336 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()
|
D | GrMatrixConvolutionEffect.cpp | 255 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate() 276 bool convolveAlpha = d->fRandom->nextBool(); in TestCreate()
|
D | GrCoverageSetOpXP.cpp | 250 bool invertCoverage = !d->fRenderTargetContext->hasMixedSamples() && d->fRandom->nextBool(); in TestGet()
|
D | GrBicubicEffect.cpp | 180 int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
|
/external/skia/tests/ |
D | GLProgramsTest.cpp | 147 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()
|
D | PathOpsTightBoundsTest.cpp | 25 if (ran.nextBool()) { in testTightBoundsLines() 68 if (ran.nextBool()) { in testTightBoundsQuads() 75 if (ran.nextBool()) { in testTightBoundsQuads()
|
/external/skia/src/gpu/ |
D | GrDefaultGeoProcFactory.cpp | 242 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()
|
D | GrTestUtils.cpp | 230 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/ |
D | random_parse_path.cpp | 53 if (rand->nextBool()) { in add_comma() 73 char symbol = legal.fSymbol | (rand->nextBool() ? 0x20 : 0); in MakeRandomParsePathPiece()
|
/external/skia/src/gpu/ops/ |
D | GrDrawVerticesOp.cpp | 368 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()
|
D | GrNonAAFillRectOp.cpp | 203 bool hasLocalRect = random->nextBool(); in DRAW_OP_TEST_DEFINE() 204 bool hasLocalMatrix = random->nextBool(); in DRAW_OP_TEST_DEFINE()
|
D | GrNonAAStrokeRectOp.cpp | 204 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()
|
D | GrNonAAFillRectPerspectiveOp.cpp | 245 bool hasLocalMatrix = random->nextBool(); in DRAW_OP_TEST_DEFINE() 252 bool hasLocalRect = random->nextBool(); in DRAW_OP_TEST_DEFINE()
|
D | GrAAStrokeRectOp.cpp | 597 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/ |
D | MatrixBench.cpp | 150 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/ |
D | GrAtlasTextContext.cpp | 361 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/ |
D | SkRandom.h | 120 bool nextBool() { return this->nextU() >= 0x80000000; } in nextBool() function
|
/external/skia/gm/ |
D | animatedimageblurs.cpp | 92 if (rand->nextBool()) { in init()
|
/external/skia/samplecode/ |
D | SamplePathText.cpp | 130 *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()
|
D | SamplePathFuzz.cpp | 203 return fRand.nextBool(); in makeBool() 276 bool antiAlias = fRand.nextBool(); in makePaint()
|
/external/skia/src/effects/ |
D | SkMorphologyImageFilter.cpp | 383 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()
|