Home
last modified time | relevance | path

Searched refs:nextUScalar1 (Results 1 – 25 of 47) sorted by relevance

12

/external/skia/samplecode/
DSampleHairCurves.cpp44 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
45 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
46 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
47 rand.nextUScalar1(), rand.nextUScalar1() in onDrawContent()
66 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
67 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
68 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
84 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
85 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
86 rand.nextUScalar1(), rand.nextUScalar1(), in onDrawContent()
[all …]
DSampleClip.cpp45 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill()
50 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_fill()
59 return min + SkScalarMul(rand.nextUScalar1(), max - min); in randRange()
74 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke()
79 rand.nextUScalar1() * W, rand.nextUScalar1() * H); in show_stroke()
DSamplePoints.cpp44 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
DSampleText.cpp106 pts[i].set(rand->nextUScalar1() * 640, rand->nextUScalar1() * 480); in fill_pts()
DSampleHairline.cpp36 pts[i].set(gRand.nextUScalar1() * 3 * w - SkIntToScalar(w), in generate_pts()
37 gRand.nextUScalar1() * 3 * h - SkIntToScalar(h)); in generate_pts()
DSampleManyRects.cpp53 rotate.setRotate(fRandom.nextUScalar1() * 360, in onDrawContent()
/external/skia/bench/
DFSRectBench.cpp32 fRects[i].fLeft = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup()
33 fRects[i].fTop = -kMinOffset - SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup()
34 fRects[i].fRight = W + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup()
35 fRects[i].fBottom = H + kMinOffset + SkScalarMul(rand.nextUScalar1(), kOffsetRange); in onDelayedSetup()
DPathBench.cpp186 path->quadTo(SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), in makePath()
187 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480)), in makePath()
188 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), in makePath()
189 SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480))); in makePath()
207 path->moveTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath()
209 path->lineTo(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in makePath()
599 SkScalar radius = rand.nextUScalar1() * 3; in onDraw()
600 r.fLeft = rand.nextUScalar1() * 300; in onDraw()
601 r.fTop = rand.nextUScalar1() * 300; in onDraw()
606 paint.setStrokeWidth(rand.nextUScalar1() * 5.0f); in onDraw()
[all …]
DShaderMaskBench.cpp73 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw()
74 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
80 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw()
81 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
DLineBench.cpp36 fPts[i].set(rand.nextUScalar1() * 640, rand.nextUScalar1() * 480); in LineBench()
DMatrixConvolutionBench.cpp44 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw()
45 rand.nextUScalar1() * 400); in onDraw()
DMorphologyBench.cpp61 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw()
62 rand.nextUScalar1() * 400); in onDraw()
DBlurBench.cpp64 SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400, in onDraw()
65 rand.nextUScalar1() * 400); in onDraw()
DXfermodeBench.cpp59 random.nextUScalar1() * (size.fWidth - w), in onDraw()
60 random.nextUScalar1() * (size.fHeight - h), in onDraw()
DTextBench.cpp142 SkScalar x = x0 + rand.nextUScalar1() * dim.fX; in onDraw()
143 SkScalar y = y0 + rand.nextUScalar1() * dim.fY; in onDraw()
DGeometryBench.cpp142 fPts[i].set(rand.nextUScalar1(), rand.nextUScalar1()); in QuadBenchBase()
/external/skia/gm/
Dstrokerects.cpp38 SkScalar x = rand.nextUScalar1() * W; in rnd_rect()
39 SkScalar y = rand.nextUScalar1() * H; in rnd_rect()
40 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect()
41 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect()
Dpoints.cpp32 SkScalar y = rand->nextUScalar1() * 480; in fill_pts()
33 SkScalar x = rand->nextUScalar1() * 640; in fill_pts()
Dstrokes.cpp22 SkScalar x = rand.nextUScalar1() * W; in rnd_rect()
23 SkScalar y = rand.nextUScalar1() * H; in rnd_rect()
24 SkScalar w = rand.nextUScalar1() * (W >> 2); in rnd_rect()
25 SkScalar h = rand.nextUScalar1() * (H >> 2); in rnd_rect()
278 SkScalar x = rand.nextUScalar1() * (W >> 1); in onOnceBeforeDraw()
279 SkScalar y = rand.nextUScalar1() * (H >> 1); in onOnceBeforeDraw()
/external/skia/src/effects/gradients/
DSkTwoPointConicalGradient_gpu.cpp189 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
190 SkScalar radius1 = d->fRandom->nextUScalar1(); in TestCreate()
194 center2.set(d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()); in TestCreate()
473 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
478 center2.set(d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()); in TestCreate()
684 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
689 center2.set(d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()); in TestCreate()
692 SkScalar increase = d->fRandom->nextUScalar1(); in TestCreate()
933 SkPoint center1 = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
934 SkScalar radius1 = d->fRandom->nextUScalar1() + 0.0001f; // make sure radius1 != 0 in TestCreate()
[all …]
DSkRadialGradient.cpp307 SkPoint center = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
308 SkScalar radius = d->fRandom->nextUScalar1(); in TestCreate()
DSkSweepGradient.cpp186 SkPoint center = {d->fRandom->nextUScalar1(), d->fRandom->nextUScalar1()}; in TestCreate()
/external/skia/include/utils/
DSkRandom.h113 SkScalar nextUScalar1() { return SkFixedToScalar(this->nextUFixed1()); } in nextUScalar1() function
119 return this->nextUScalar1() * (max - min) + min; in nextRangeScalar()
135 return this->nextUScalar1() <= fractionTrue; in nextBiasedBool()
/external/skia/tests/
DSkColor4fTest.cpp60 1, rand.nextUScalar1(), rand.nextUScalar1(), rand.nextUScalar1() in DEF_TEST()
70 c4.fA = rand.nextUScalar1(); in DEF_TEST()
/external/skia/src/animator/
DSkDisplayRandom.cpp48 SkScalar random = fRandom.nextUScalar1(); in getProperty()

12