/external/skia/gm/ |
D | beziers.cpp | 19 p->moveTo(rand.nextRangeScalar(0, W), rand.nextRangeScalar(0, H)); in rnd_quad() 21 p->quadTo(rand.nextRangeScalar(W / 4, W), rand.nextRangeScalar(0, H), in rnd_quad() 22 rand.nextRangeScalar(0, W), rand.nextRangeScalar(H / 4, H)); in rnd_quad() 25 SkScalar width = rand.nextRangeScalar(1, 5); in rnd_quad() 32 p->moveTo(rand.nextRangeScalar(0, W), rand.nextRangeScalar(0, H)); in rnd_cubic() 34 p->cubicTo(rand.nextRangeScalar(W / 4, W), rand.nextRangeScalar(0, H), in rnd_cubic() 35 rand.nextRangeScalar(0, W), rand.nextRangeScalar(H / 4, H), in rnd_cubic() 36 rand.nextRangeScalar(W / 4, W), rand.nextRangeScalar(H / 4, H)); in rnd_cubic() 39 SkScalar width = rand.nextRangeScalar(1, 5); in rnd_cubic()
|
D | variedtext.cpp | 83 fPtSizes[i] = random.nextRangeScalar(kMinPtSize, kMaxPtSize); in onOnceBeforeDraw() 102 fPositions[i].fX = random.nextRangeScalar(safeRect.fLeft, safeRect.fRight); in onOnceBeforeDraw() 103 fPositions[i].fY = random.nextRangeScalar(safeRect.fTop, safeRect.fBottom); in onOnceBeforeDraw()
|
D | imagemagnifier.cpp | 32 paint.setTextSize(rand.nextRangeScalar(0, 300)); in DEF_SIMPLE_GM_BG()
|
D | imageblur.cpp | 30 textPaint.setTextSize(rand.nextRangeScalar(0, 300)); in imageblurgm_draw()
|
/external/skia/src/gpu/batches/ |
D | GrDrawAtlasBatch.cpp | 210 SkRSXform xform = SkRSXform::MakeFromRadians(random->nextRangeScalar(kMinScale, kMaxScale), in random_xform() 211 random->nextRangeScalar(kMinRotate, kMaxRotate), in random_xform() 212 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform() 213 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform() 214 random->nextRangeScalar(kMinExtent, kMaxExtent), in random_xform() 215 random->nextRangeScalar(kMinExtent, kMaxExtent)); in random_xform() 223 SkRect texRect = SkRect::MakeLTRB(random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect() 224 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect() 225 random->nextRangeScalar(kMinCoord, kMaxCoord), in random_texRect() 226 random->nextRangeScalar(kMinCoord, kMaxCoord)); in random_texRect()
|
D | GrDrawVerticesBatch.cpp | 249 p.fX = random->nextRangeScalar(min, max); in random_point() 250 p.fY = random->nextRangeScalar(min, max); in random_point()
|
/external/skia/bench/ |
D | RectoriBench.cpp | 32 SkScalar blurSigma = Random.nextRangeScalar(1.5f, 25.0f); in onDraw() 33 SkScalar size = Random.nextRangeScalar(20*blurSigma, 50*blurSigma); in onDraw() 35 SkScalar x = Random.nextRangeScalar(0.0f, W - size); in onDraw() 36 SkScalar y = Random.nextRangeScalar(0.0f, H - size); in onDraw()
|
D | XfermodeBench.cpp | 48 paint.setTextSize(random.nextRangeScalar(12, 96)); in onDraw() 49 SkScalar x = random.nextRangeScalar(0, (SkScalar)size.fWidth), in onDraw() 50 y = random.nextRangeScalar(0, (SkScalar)size.fHeight); in onDraw() 56 SkScalar w = random.nextRangeScalar(50, 100); in onDraw() 57 SkScalar h = random.nextRangeScalar(50, 100); in onDraw()
|
D | PicturePlaybackBench.cpp | 176 SkScalar x = rand.nextRangeScalar(0, 1024), in onDelayedSetup() 177 y = rand.nextRangeScalar(0, 1024), in onDelayedSetup() 178 w = rand.nextRangeScalar(0, 128), in onDelayedSetup() 179 h = rand.nextRangeScalar(0, 128); in onDelayedSetup() 198 case kRandom: x = rand.nextRangeScalar(0, 768); in onDraw() 199 y = rand.nextRangeScalar(0, 768); in onDraw()
|
D | GeometryBench.cpp | 54 SkScalar x = rand.nextRangeScalar(min, max); in onDelayedSetup() 55 SkScalar y = rand.nextRangeScalar(min, max); in onDelayedSetup() 56 SkScalar w = rand.nextRangeScalar(min, max); in onDelayedSetup() 57 SkScalar h = rand.nextRangeScalar(min, max); in onDelayedSetup()
|
D | GameBench.cpp | 173 fSaved[fNumSaved][0] = transRand.nextRangeScalar(0.0f, maxTransX); in onDraw() 174 fSaved[fNumSaved][1] = transRand.nextRangeScalar(0.0f, maxTransY); in onDraw() 184 fSaved[fNumSaved][2] = scaleRand.nextRangeScalar(0.5f, 1.5f); in onDraw() 187 fSaved[fNumSaved][2] = rotRand.nextRangeScalar(0.0f, 360.0f); in onDraw()
|
D | PathBench.cpp | 245 fPoints[i].set(fRandom.nextRangeScalar(bounds->fLeft, bounds->fRight), in createData() 246 fRandom.nextRangeScalar(bounds->fTop, bounds->fBottom)); in createData() 779 size.fWidth = rand.nextRangeScalar(kQueryMin.fWidth, kQueryMax.fWidth); in onDelayedSetup() 780 size.fHeight = rand.nextRangeScalar(kQueryMin.fHeight, kQueryMax.fHeight); in onDelayedSetup() 781 xy.fX = rand.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth); in onDelayedSetup() 782 xy.fY = rand.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight); in onDelayedSetup()
|
D | ChartBench.cpp | 25 (*dataPts)[i] = random->nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
|
/external/skia/experimental/nanomsg/ |
D | picture_demo.cpp | 86 SkScalar r = rand.nextRangeScalar(0, picture->cullRect().width()), in client() 87 b = rand.nextRangeScalar(0, picture->cullRect().height()), in client() 88 l = rand.nextRangeScalar(0, r), in client() 89 t = rand.nextRangeScalar(0, b); in client() 92 header.matrix.postRotate(rand.nextRangeScalar(-25, 25)); in client()
|
/external/skia/src/gpu/effects/ |
D | GrOvalEffect.cpp | 82 center.fX = d->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate() 83 center.fY = d->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate() 249 center.fX = d->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate() 250 center.fY = d->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate()
|
D | GrRRectEffect.cpp | 114 SkScalar w = d->fRandom->nextRangeScalar(20.f, 1000.f); in TestCreate() 115 SkScalar h = d->fRandom->nextRangeScalar(20.f, 1000.f); in TestCreate() 448 SkScalar w = d->fRandom->nextRangeScalar(20.f, 1000.f); in TestCreate() 449 SkScalar h = d->fRandom->nextRangeScalar(20.f, 1000.f); in TestCreate()
|
D | GrTextureDomain.cpp | 288 domain.fRight = d->fRandom->nextRangeScalar(domain.fLeft, SK_Scalar1); in TestCreate() 290 domain.fBottom = d->fRandom->nextRangeScalar(domain.fTop, SK_Scalar1); in TestCreate()
|
D | GrDashingEffect.cpp | 1281 intervals[0] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in DRAW_BATCH_TEST_DEFINE() 1282 intervals[1] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in DRAW_BATCH_TEST_DEFINE() 1286 intervals[1] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in DRAW_BATCH_TEST_DEFINE() 1289 intervals[0] = random->nextRangeScalar(kIntervalMin, kIntervalMax); in DRAW_BATCH_TEST_DEFINE() 1296 SkScalar phase = random->nextRangeScalar(0, intervals[0] + intervals[1]); in DRAW_BATCH_TEST_DEFINE()
|
/external/skia/src/gpu/ |
D | GrTestUtils.cpp | 228 SkScalar miterLimit = random->nextRangeScalar(1.f, 5.f); in randomize_stroke_rec() 250 dashInfo.fIntervals[i] = random->nextRangeScalar(SkDoubleToScalar(0.01), in TestStrokeInfo() 254 dashInfo.fPhase = random->nextRangeScalar(0, sum); in TestStrokeInfo()
|
/external/skia/include/utils/ |
D | SkRandom.h | 118 SkScalar nextRangeScalar(SkScalar min, SkScalar max) { in nextRangeScalar() function
|
/external/skia/tests/ |
D | PathOpsBuilderConicTest.cpp | 83 SkScalar xOffset = r.nextRangeScalar(1, 40) * scale; in setupOne() 84 SkScalar yOffset = r.nextRangeScalar(1, 100) * scale; in setupOne() 87 r.nextRangeScalar(5, 50) * scale, r.nextRangeScalar(50, 90) * scale); in setupOne()
|
D | ClipStackTest.cpp | 940 …SkScalarFloorToScalar(SkScalarMul(kBounds.width(), r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSiz… in test_reduced_clip_stack() 941 …SkScalarFloorToScalar(SkScalarMul(kBounds.height(), r.nextRangeScalar(kMinElemSizeFrac, kMaxElemSi… in test_reduced_clip_stack() 943 …SkPoint xy = {SkScalarFloorToScalar(r.nextRangeScalar(kBounds.fLeft, kBounds.fRight - size.fWidth)… in test_reduced_clip_stack() 944 … SkScalarFloorToScalar(r.nextRangeScalar(kBounds.fTop, kBounds.fBottom - size.fHeight))}; in test_reduced_clip_stack()
|
/external/skia/samplecode/ |
D | SampleChart.cpp | 20 (*dataPts)[i] = gRandom.nextRangeScalar(yAvg - SkScalarHalf(ySpread), in gen_data()
|
/external/skia/src/effects/ |
D | GrCircleBlurFragmentProcessor.cpp | 262 SkScalar wh = d->fRandom->nextRangeScalar(100.f, 1000.f); in TestCreate()
|
/external/skia/experimental/SkPerlinNoiseShader2/ |
D | SkPerlinNoiseShader2.cpp | 715 SkScalar baseFrequencyX = d->fRandom->nextRangeScalar(0.01f, in TestCreate() 717 SkScalar baseFrequencyY = d->fRandom->nextRangeScalar(0.01f, in TestCreate() 1119 SkScalar baseFrequencyX = d->fRandom->nextRangeScalar(0.01f, in TestCreate() 1121 SkScalar baseFrequencyY = d->fRandom->nextRangeScalar(0.01f, in TestCreate()
|